Skip to content

Commit 39f4f8f

Browse files
committed
golangci: migrate to v2 schema
1 parent ff3e7ae commit 39f4f8f

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

.golangci.yml

+27-14
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,36 @@
1+
version: "2"
12
run:
23
build-tags:
34
- build
45
- containers_image_openpgp
5-
timeout: 10m
6-
76
linters:
87
enable:
8+
- gocritic
9+
- gosec
10+
- misspell
911
- errcheck
10-
- goimports
1112
- gofmt
1213
- gosec
13-
- gocritic
14-
- unused
15-
- misspell
16-
- revive
17-
18-
issues:
19-
exclude-rules:
20-
- path: 'test/*'
21-
text: 'dot-imports: should not use dot imports'
22-
linters:
23-
- revive
14+
- goimports
15+
# - revive # revive is flagging ginkgo and gomega dot-imports
16+
exclusions:
17+
generated: lax
18+
presets:
19+
- comments
20+
- common-false-positives
21+
- legacy
22+
- std-error-handling
23+
paths:
24+
- third_party$
25+
- builtin$
26+
- examples$
27+
formatters:
28+
enable:
29+
- gofmt
30+
- goimports
31+
exclusions:
32+
generated: lax
33+
paths:
34+
- third_party$
35+
- builtin$
36+
- examples$

0 commit comments

Comments
 (0)