Skip to content

Commit df0ae28

Browse files
authored
[release-1.16] Migrate golanglint-ci config to v2 (#8562)
Migrate golanglint-ci config to v2
1 parent ce38f72 commit df0ae28

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

.golangci.yaml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1+
version: "2"
12
run:
2-
timeout: 10m
3-
43
build-tags:
54
- e2e
65
- probe
76
- preupgrade
87
- postupgrade
98
- postdowngrade
10-
11-
skip-dirs:
12-
- pkg/client
13-
149
linters:
1510
enable:
1611
- asciicheck
@@ -20,10 +15,28 @@ linters:
2015
- unparam
2116
disable:
2217
- errcheck
23-
24-
issues:
25-
exclude-rules:
26-
- path: test # Excludes /test, *_test.go etc.
27-
linters:
28-
- gosec
29-
- unparam
18+
exclusions:
19+
generated: lax
20+
presets:
21+
- comments
22+
- common-false-positives
23+
- legacy
24+
- std-error-handling
25+
rules:
26+
- linters:
27+
- gosec
28+
- unparam
29+
path: test
30+
paths:
31+
- third_party$
32+
- builtin$
33+
- examples$
34+
- pkg/client
35+
formatters:
36+
exclusions:
37+
generated: lax
38+
paths:
39+
- third_party$
40+
- builtin$
41+
- examples$
42+
- pkg/client

0 commit comments

Comments
 (0)