44 - asciicheck
55 - bodyclose
66 - containedctx
7- - deadcode
87 - depguard
98 - dogsled
109 - errcheck
@@ -19,7 +18,6 @@ linters:
1918 - gosec
2019 - gosimple
2120 - govet
22- - ifshort
2321 - importas
2422 - ineffassign
2523 - misspell
@@ -32,14 +30,12 @@ linters:
3230 - revive
3331 - rowserrcheck
3432 - staticcheck
35- - structcheck
3633 - stylecheck
3734 - thelper
3835 - typecheck
3936 - unconvert
4037 - unparam
4138 - unused
42- - varcheck
4339 - whitespace
4440
4541linters-settings :
@@ -51,9 +47,6 @@ linters-settings:
5147 exclude :
5248 - ' ^ \+.*'
5349 - ' ^ ANCHOR.*'
54- ifshort :
55- # Maximum length of variable declaration measured in number of characters, after which linter won't suggest using short syntax.
56- max-decl-chars : 50
5750 gci :
5851 local-prefixes : " sigs.k8s.io/cluster-api"
5952 importas :
@@ -215,13 +208,7 @@ issues:
215208 - linters :
216209 - gocritic
217210 text : " appendAssign: append result not assigned to the same slice"
218- # ifshort flags variables that are only used in the if-statement even though there is
219- # already a SimpleStmt being used in the if-statement in question.
220- - linters :
221- - ifshort
222- text : " variable .* is only used in the if-statement"
223- path : controllers/mdutil/util.go
224- # Disable linters for conversion
211+ # Disable linters for conversion
225212 - linters :
226213 - staticcheck
227214 text : " SA1019: in.(.+) is deprecated"
@@ -251,15 +238,6 @@ issues:
251238 - typecheck
252239 text : import (".+") is a program, not an importable package
253240 path : ^tools\.go$
254- # TODO(sbueringer) Ignore ifshort false positive: https://github.com/esimonov/ifshort/issues/23
255- - linters :
256- - ifshort
257- text : " variable 'isDeleteNodeAllowed' is only used in the if-statement.*"
258- path : ^internal/controllers/machine/machine_controller\.go$
259- - linters :
260- - ifshort
261- text : " variable 'kcpMachinesWithErrors' is only used in the if-statement.*"
262- path : ^controlplane/kubeadm/internal/workload_cluster_conditions\.go$
263241 # We don't care about defer in for loops in test files.
264242 - linters :
265243 - gocritic
0 commit comments