Skip to content

Commit dcb002c

Browse files
authored
[release-1.16] Upgrade to golangci.yaml v2 (knative-extensions#312)
Upgrade to golangci.yaml v2
1 parent 7e84b59 commit dcb002c

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

.golangci.yaml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,40 @@
1+
version: "2"
12
run:
2-
timeout: 5m
3-
43
build-tags:
54
- e2e
6-
7-
issues:
8-
exclude-dirs:
9-
- pkg/client # Excludes generated client
10-
115
linters:
126
enable:
137
- asciicheck
148
- errorlint
159
- gosec
1610
- prealloc
1711
- revive
18-
- stylecheck
12+
- staticcheck
1913
- tparallel
2014
- unconvert
2115
- unparam
2216
disable:
2317
- errcheck
18+
settings:
19+
gosec:
20+
excludes:
21+
- G115
22+
exclusions:
23+
generated: lax
24+
presets:
25+
- comments
26+
- common-false-positives
27+
- legacy
28+
- std-error-handling
29+
paths:
30+
- pkg/client
31+
- third_party$
32+
- builtin$
33+
- examples$
34+
formatters:
35+
exclusions:
36+
generated: lax
37+
paths:
38+
- third_party$
39+
- builtin$
40+
- examples$

0 commit comments

Comments
 (0)