11run :
22 timeout : 10m
33
4- skip-files :
5- - " zz_generated\\ ..+\\ .go$"
6-
74output :
85 # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
9- format : colored-line-number
6+ formats :
7+ - format : colored-line-number
108
119linters-settings :
1210 errcheck :
@@ -18,14 +16,15 @@ linters-settings:
1816 # default is false: such cases aren't reported by default.
1917 check-blank : false
2018
21- # [deprecated] comma-separated list of pairs of the form pkg:regex
22- # the regex is used to ignore names within pkg. (default "fmt:.*") .
23- # see https://github.com/kisielk/errcheck#the-deprecated-method for details
24- ignore : fmt:.*, io/ioutil:^Read.*
19+ # List of functions to exclude from checking, where each entry is a single function to exclude.
20+ # See https://github.com/kisielk/errcheck#excluding-functions for details .
21+ exclude-functions :
22+ - io/ioutil.ReadFile
2523
2624 govet :
2725 # report about shadowed variables
28- check-shadowing : false
26+ disable :
27+ - shadow
2928
3029 gofmt :
3130 # simplify code: gofmt with `-s` option, true by default
@@ -45,10 +44,6 @@ linters-settings:
4544 # minimal code complexity to report, 30 by default (but we recommend 10-20)
4645 min-complexity : 10
4746
48- maligned :
49- # print struct with more effective memory layout or not, false by default
50- suggest-new : true
51-
5247 dupl :
5348 # tokens count to trigger issue, 150 by default
5449 threshold : 100
@@ -116,7 +111,7 @@ linters:
116111 - misspell
117112 - nakedret
118113 - nolintlint
119-
114+
120115 disable :
121116 # These linters are all deprecated as of golangci-lint v1.49.0. We disable
122117 # them explicitly to avoid the linter logging deprecation warnings.
@@ -135,6 +130,9 @@ linters:
135130issues :
136131 # Excluding configuration per-path and per-linter
137132 exclude-rules :
133+ - path : " zz_generated\\ ..+\\ .go$"
134+ linters : ["all"]
135+
138136 # Exclude some linters from running on tests files.
139137 - path : _test(ing)?\.go
140138 linters :
@@ -181,7 +179,7 @@ issues:
181179 linters :
182180 - gosec
183181 - gas
184-
182+
185183 # Some k8s dependencies do not have JSON tags on all fields in structs.
186184 - path : k8s.io/
187185 linters :
@@ -202,7 +200,7 @@ issues:
202200 new : false
203201
204202 # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
205- max-per-linter : 0
203+ max-issues- per-linter : 0
206204
207205 # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
208206 max-same-issues : 0
0 commit comments