Skip to content

Commit 6365d89

Browse files
authored
Migrate golanglint-ci config to v2 (#8557)
1 parent bbc9696 commit 6365d89

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

.golangci.yaml

+25-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +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-
119
linters:
1210
enable:
1311
- asciicheck
@@ -17,12 +15,27 @@ linters:
1715
- unparam
1816
disable:
1917
- errcheck
20-
21-
issues:
22-
exclude-dirs:
23-
- pkg/client # Excludes generated client
24-
exclude-rules:
25-
- path: test # Excludes /test, *_test.go etc.
26-
linters:
27-
- gosec
28-
- 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+
- pkg/client
32+
- third_party$
33+
- builtin$
34+
- examples$
35+
formatters:
36+
exclusions:
37+
generated: lax
38+
paths:
39+
- third_party$
40+
- builtin$
41+
- examples$

0 commit comments

Comments
 (0)