@@ -26,8 +26,11 @@ func setupLintersFlagSet(v *viper.Viper, fs *pflag.FlagSet) {
26
26
color .GreenString ("Enable only fast linters from enabled linters set (first run won't be fast)" ))
27
27
28
28
internal .AddHackedStringSliceP (fs , "presets" , "p" ,
29
- color .GreenString (fmt .Sprintf ("Enable presets (%s) of linters. Run 'golangci-lint help linters' to see them. " +
30
- "This option implies option --disable-all" , strings .Join (lintersdb .AllPresets (), "|" ))))
29
+ color .GreenString (fmt .Sprintf ("Enable presets (%s) of linters.\n " +
30
+ "Run 'golangci-lint help linters' to see them.\n " +
31
+ "This option implies option --disable-all" ,
32
+ strings .Join (lintersdb .AllPresets (), "|" ),
33
+ )))
31
34
32
35
fs .StringSlice ("enable-only" , nil ,
33
36
color .GreenString ("Override linters configuration section to only run the specific linter(s)" )) // Flags only.
@@ -53,11 +56,11 @@ func setupRunFlagSet(v *viper.Viper, fs *pflag.FlagSet) {
53
56
internal .AddDeprecatedFlagAndBind (v , fs , fs .Bool , "skip-dirs-use-default" , "run.skip-dirs-use-default" , true ,
54
57
getDefaultDirectoryExcludeHelp ())
55
58
56
- const allowParallelDesc = "Allow multiple parallel golangci-lint instances running. " +
59
+ const allowParallelDesc = "Allow multiple parallel golangci-lint instances running.\n " +
57
60
"If false (default) - golangci-lint acquires file lock on start."
58
61
internal .AddFlagAndBind (v , fs , fs .Bool , "allow-parallel-runners" , "run.allow-parallel-runners" , false ,
59
62
color .GreenString (allowParallelDesc ))
60
- const allowSerialDesc = "Allow multiple golangci-lint instances running, but serialize them around a lock. " +
63
+ const allowSerialDesc = "Allow multiple golangci-lint instances running, but serialize them around a lock.\n " +
61
64
"If false (default) - golangci-lint exits with an error if it fails to acquire file lock on start."
62
65
internal .AddFlagAndBind (v , fs , fs .Bool , "allow-serial-runners" , "run.allow-serial-runners" , false , color .GreenString (allowSerialDesc ))
63
66
}
0 commit comments