Skip to content

Commit 19a97b8

Browse files
authored
Update errcheck func (#2007)
Signed-off-by: Lubron Zhan <lubronzhan@gmail.com>
1 parent 182962b commit 19a97b8

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.errcheck.list

Lines changed: 0 additions & 8 deletions
This file was deleted.

.golangci.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@ run:
22
tests: false
33
linters-settings:
44
errcheck:
5-
exclude: ./.errcheck.list
5+
# Keyword `exclude` is removed: https://golangci-lint.run/usage/linters/#errcheck
6+
exclude-functions:
7+
- github.com/imdario/mergo.Merge
8+
- github.com/spf13/viper.BindEnv
9+
- (github.com/spf13/pflag.Value).Set
10+
- (*github.com/briandowns/spinner.Spinner).Color
11+
- (*github.com/spf13/cobra.Command).MarkFlagRequired
12+
- (*github.com/spf13/cobra.Command).Help
13+
- (*github.com/spf13/pflag.FlagSet).MarkHidden
14+
- (*github.com/spf13/pflag.FlagSet).Set

0 commit comments

Comments
 (0)