Skip to content

Commit acdd4ba

Browse files
authored
Migrate golanglint-ci config to v2 (#4322)
1 parent eecbbed commit acdd4ba

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,9 +1,7 @@
1+
version: "2"
12
run:
2-
timeout: 5m
3-
43
build-tags:
54
- e2e
6-
75
linters:
86
enable:
97
- asciicheck
@@ -13,13 +11,28 @@ linters:
1311
- unparam
1412
disable:
1513
- errcheck
16-
17-
issues:
18-
exclude-dirs:
19-
- control-plane/pkg/client
20-
- data-plane
21-
exclude-rules:
22-
- path: test # Excludes /test, *_test.go etc.
23-
linters:
24-
- gosec
25-
- unparam
14+
exclusions:
15+
generated: lax
16+
presets:
17+
- comments
18+
- common-false-positives
19+
- legacy
20+
- std-error-handling
21+
rules:
22+
- linters:
23+
- gosec
24+
- unparam
25+
path: test
26+
paths:
27+
- control-plane/pkg/client
28+
- data-plane
29+
- third_party$
30+
- builtin$
31+
- examples$
32+
formatters:
33+
exclusions:
34+
generated: lax
35+
paths:
36+
- third_party$
37+
- builtin$
38+
- examples$

0 commit comments

Comments
 (0)