golangci-lint config verify
prints help on verification failure
#4596
Labels
golangci-lint config verify
prints help on verification failure
#4596
Welcome
Description of the problem
Upon failing verification on a config, the verification error is printed and so is the command's help:
Expectation: help is only printed if I passed invalid flags/had some invalid setup.
I find printing the help clutters the output and makes it hard to read the reason for the failure
Thanks for adding the
config verify
command, I was recently looking for exactly this behaviour and was happy to see it includedVersion of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
You just need any invalid config (the one shared above will do) then run
golangci-lint config verify
.I see
cobra.Command
has aSilenceUsage
attribute but I'm not sure we can set this from within the verify command because of spf13/cobra#564. MaybeexecuteVerify
could run as acommand.Run
(instead of acommand.RunE
) and just log its errors?Validation
The text was updated successfully, but these errors were encountered: