Skip to content

Commit bbcfbd5

Browse files
authored
bump to golangci yaml v2 (#577)
Signed-off-by: Paul S. Schweigert <[email protected]>
1 parent e7a221e commit bbcfbd5

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

.golangci.yaml

Lines changed: 24 additions & 10 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
- errorlint
@@ -13,10 +11,26 @@ linters:
1311
- unparam
1412
disable:
1513
- errcheck
16-
17-
issues:
18-
exclude-rules:
19-
- path: test # Excludes /test, *_test.go etc.
20-
linters:
21-
- gosec
22-
- 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+
- third_party$
28+
- builtin$
29+
- examples$
30+
formatters:
31+
exclusions:
32+
generated: lax
33+
paths:
34+
- third_party$
35+
- builtin$
36+
- examples$

0 commit comments

Comments
 (0)