11run :
22 timeout : 10m
33
4- skip-files :
5- - " zz_generated\\ ..+\\ .go$"
6- - " .*_test.go$"
7-
8- skip-dirs :
9- - " hack"
10- - " e2e"
11-
12- output :
13- # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
14- format : colored-line-number
15-
164linters-settings :
175 errcheck :
186 # report about not checking of errors in type assetions: `a := b.(MyStruct)`;
@@ -23,10 +11,11 @@ linters-settings:
2311 # default is false: such cases aren't reported by default.
2412 check-blank : false
2513
26- # [deprecated] comma-separated list of pairs of the form pkg:regex
14+ # comma-separated list of pairs of the form pkg:regex
2715 # the regex is used to ignore names within pkg. (default "fmt:.*").
28- # see https://github.com/kisielk/errcheck#the-deprecated-method for details
29- ignore : fmt:.*,io/ioutil:^Read.*
16+ exclude-functions :
17+ - fmt.*
18+ - io/ioutil:^Read.*
3019
3120 exhaustive :
3221 # indicates that switch statements are to be considered exhaustive if a
@@ -41,6 +30,9 @@ linters-settings:
4130 revive :
4231 # minimal confidence for issues, default is 0.8
4332 min-confidence : 0.8
33+ rules :
34+ - name : unused-parameter
35+ disabled : true
4436
4537 gofmt :
4638 # simplify code: gofmt with `-s` option, true by default
@@ -109,7 +101,6 @@ linters-settings:
109101
110102linters :
111103 enable :
112- - megacheck
113104 - govet
114105 - gocyclo
115106 - gocritic
@@ -121,11 +112,10 @@ linters:
121112 - misspell
122113 - nakedret
123114 - exportloopref
115+ - unused
116+ - gosimple
117+ - staticcheck
124118 disable :
125- - deadcode
126- - scopelint
127- - structcheck
128- - varcheck
129119 - rowserrcheck
130120 - sqlclosecheck
131121 - errchkjson
@@ -137,8 +127,28 @@ linters:
137127
138128
139129issues :
130+
131+ exclude-files :
132+ - " zz_generated\\ ..+\\ .go$"
133+ - " .*_test.go$"
134+
135+ exclude-dirs :
136+ - " hack"
137+ - " e2e"
138+
140139 # Excluding configuration per-path and per-linter
141140 exclude-rules :
141+ - path : .*\.go
142+ linters :
143+ - errcheck
144+ text : " fmt\\ ."
145+
146+ # Ignore unchecked errors from io/ioutil functions starting with Read
147+ - path : .*\.go
148+ linters :
149+ - errcheck
150+ text : " io/ioutil.*Read"
151+
142152 # Exclude some linters from running on tests files.
143153 - path : _test(ing)?\.go
144154 linters :
@@ -155,6 +165,13 @@ issues:
155165 linters :
156166 - gocritic
157167
168+ # Gosmopolitan complains of internationalization issues on the file that actually defines
169+ # the translation.
170+ - path : i18n\.go
171+ text : " Han"
172+ linters :
173+ - gosmopolitan
174+
158175 # These are performance optimisations rather than style issues per se.
159176 # They warn when function arguments or range values copy a lot of memory
160177 # rather than using a pointer.
@@ -223,4 +240,4 @@ issues:
223240 max-per-linter : 0
224241
225242 # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
226- max-same-issues : 0
243+ max-same-issues : 0
0 commit comments