@@ -42,18 +42,18 @@ func setupFormattersFlagSet(v *viper.Viper, fs *pflag.FlagSet) {
42
42
}
43
43
44
44
func setupRunFlagSet (v * viper.Viper , fs * pflag.FlagSet ) {
45
- internal .AddFlagAndBindP (v , fs , fs .IntP , "concurrency" , "j" , "run.concurrency" , getDefaultConcurrency (),
46
- color .GreenString ("Number of CPUs to use (Default: number of logical CPUs)" ))
45
+ internal .AddFlagAndBindP (v , fs , fs .IntP , "concurrency" , "j" , "run.concurrency" , 0 ,
46
+ color .GreenString ("Number of CPUs to use (Default: Automatically set to match Linux container CPU quota" +
47
+ " and fall back to the number of logical CPUs in the machine)" ))
47
48
48
49
internal .AddFlagAndBind (v , fs , fs .String , "modules-download-mode" , "run.modules-download-mode" , "" ,
49
50
color .GreenString ("Modules download mode. If not empty, passed as -mod=<mode> to go tools" ))
50
51
internal .AddFlagAndBind (v , fs , fs .Int , "issues-exit-code" , "run.issues-exit-code" , exitcodes .IssuesFound ,
51
52
color .GreenString ("Exit code when issues were found" ))
52
- internal .AddFlagAndBind (v , fs , fs .String , "go" , "run.go" , "" , color .GreenString ("Targeted Go version" ))
53
53
internal .AddHackedStringSlice (fs , "build-tags" , color .GreenString ("Build tags" ))
54
54
55
55
internal .AddFlagAndBind (v , fs , fs .Duration , "timeout" , "run.timeout" , defaultTimeout ,
56
- color .GreenString ("Timeout for total work. If <= 0, the timeout is disabled " ))
56
+ color .GreenString ("Timeout for total work. Disabled by default " ))
57
57
58
58
internal .AddFlagAndBind (v , fs , fs .Bool , "tests" , "run.tests" , true , color .GreenString ("Analyze tests (*_test.go)" ))
59
59
@@ -72,7 +72,7 @@ func setupRunFlagSet(v *viper.Viper, fs *pflag.FlagSet) {
72
72
func setupOutputFlagSet (v * viper.Viper , fs * pflag.FlagSet ) {
73
73
internal .AddFlagAndBind (v , fs , fs .String , "path-prefix" , "output.path-prefix" , "" ,
74
74
color .GreenString ("Path prefix to add to output" ))
75
- internal .AddFlagAndBind (v , fs , fs .Bool , "show-stats" , "output.show-stats" , false , color .GreenString ("Show statistics per linter" ))
75
+ internal .AddFlagAndBind (v , fs , fs .Bool , "show-stats" , "output.show-stats" , true , color .GreenString ("Show statistics per linter" ))
76
76
77
77
setupOutputFormatsFlagSet (v , fs )
78
78
}
0 commit comments