@@ -42,18 +42,18 @@ func setupFormattersFlagSet(v *viper.Viper, fs *pflag.FlagSet) {
4242}
4343
4444func 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)" ))
4748
4849 internal .AddFlagAndBind (v , fs , fs .String , "modules-download-mode" , "run.modules-download-mode" , "" ,
4950 color .GreenString ("Modules download mode. If not empty, passed as -mod=<mode> to go tools" ))
5051 internal .AddFlagAndBind (v , fs , fs .Int , "issues-exit-code" , "run.issues-exit-code" , exitcodes .IssuesFound ,
5152 color .GreenString ("Exit code when issues were found" ))
52- internal .AddFlagAndBind (v , fs , fs .String , "go" , "run.go" , "" , color .GreenString ("Targeted Go version" ))
5353 internal .AddHackedStringSlice (fs , "build-tags" , color .GreenString ("Build tags" ))
5454
5555 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 " ))
5757
5858 internal .AddFlagAndBind (v , fs , fs .Bool , "tests" , "run.tests" , true , color .GreenString ("Analyze tests (*_test.go)" ))
5959
@@ -72,7 +72,7 @@ func setupRunFlagSet(v *viper.Viper, fs *pflag.FlagSet) {
7272func setupOutputFlagSet (v * viper.Viper , fs * pflag.FlagSet ) {
7373 internal .AddFlagAndBind (v , fs , fs .String , "path-prefix" , "output.path-prefix" , "" ,
7474 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" ))
7676
7777 setupOutputFormatsFlagSet (v , fs )
7878}
0 commit comments