Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix lint issues reported by golangci-lint
Except for some errcheck findings related to viper that I believe are commonly ignored: $ golangci-lint run ./... pkg/commands/commands.go:39:17: Error return value of `viper.BindPFlag` is not checked (errcheck) viper.BindPFlag("policy", cmd.PersistentFlags().Lookup("policy")) ^ pkg/commands/commands.go:40:17: Error return value of `viper.BindPFlag` is not checked (errcheck) viper.BindPFlag("debug", cmd.PersistentFlags().Lookup("debug")) ^ pkg/commands/commands.go:41:17: Error return value of `viper.BindPFlag` is not checked (errcheck) viper.BindPFlag("trace", cmd.PersistentFlags().Lookup("trace")) ^ pkg/commands/commands.go:49:20: Error return value of `viper.ReadInConfig` is not checked (errcheck) viper.ReadInConfig() ^ Signed-off-by: Stephan Renatus <[email protected]>
- Loading branch information