feat(linter): enable errcheck linter in golangci-lint
Also, bump the linter version to the latest available version. Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
parent
9610a1e618
commit
7ce129d63b
36 changed files with 243 additions and 66 deletions
|
@ -31,6 +31,7 @@ var RootCmd = &cobra.Command{
|
|||
version.PrintVersion()
|
||||
return
|
||||
}
|
||||
// nolint:errcheck
|
||||
cmd.Usage()
|
||||
},
|
||||
}
|
||||
|
@ -49,6 +50,7 @@ var GCCmd = &cobra.Command{
|
|||
config, err := resolveConfiguration(args)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "configuration error: %v\n", err)
|
||||
// nolint:errcheck
|
||||
cmd.Usage()
|
||||
os.Exit(1)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue