You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was confused by this section of the --help text. I wondered why concurrency was defaulting to 4, instead of using runtime.NumCPU() to scale the number of workers to the user's actual number of cores.
Flags:
-j, --concurrency int Concurrency (default 4)
I was confused by this section of the
--help
text. I wondered why concurrency was defaulting to 4, instead of usingruntime.NumCPU()
to scale the number of workers to the user's actual number of cores.Apparently, you are doing this 😀👍
https://github.com/golangci/golangci-lint/blob/master/pkg/commands/root.go#L64
I think the
--help
text should be updated toConcurrency (default NumCPU)
or similar. Go programmers will recognizeNumCPU
asruntime.NumCPU()
.The text was updated successfully, but these errors were encountered: