Skip to content

Commit 0d51c86

Browse files
fix linters related warnings (kubernetes-sigs#2169)
Signed-off-by: Prajyot Parab <[email protected]>
1 parent 2c4dc73 commit 0d51c86

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.golangci.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ linters:
99
- dogsled
1010
- errcheck
1111
- errchkjson
12-
- execinquery
1312
- exportloopref
1413
- gci
1514
- goconst
@@ -100,10 +99,6 @@ linters-settings:
10099
allow-unused: false
101100
allow-leading-space: false
102101
require-specific: true
103-
staticcheck:
104-
go: "1.22"
105-
stylecheck:
106-
go: "1.22"
107102
gosec:
108103
excludes:
109104
- G307 # Deferring unsafe method "Close" on type "\*os.File"
@@ -208,12 +203,13 @@ issues:
208203
- gocritic
209204
text: "deferInLoop: Possible resource leak, 'defer' is called in the 'for' loop"
210205
path: _test\.go
206+
exclude-files:
207+
- "zz_generated.*\\.go$"
211208

212209
run:
210+
go: "1.22"
213211
timeout: 10m
214212
build-tags:
215213
- tools
216214
- e2e
217-
skip-files:
218-
- "zz_generated.*\\.go$"
219215
allow-parallel-runners: true

0 commit comments

Comments
 (0)