-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yml
48 lines (44 loc) · 830 Bytes
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
run:
timeout: 5m
go: "1.22"
skip-files:
tests: false
allow-parallel-runners: true
output:
format: github-actions
linters:
disable-all: true
enable:
- govet
- revive
- goimports
- misspell
- ineffassign
- gofmt
linters-settings:
govet:
check-shadowing: false
gofmt:
simplify: false
run:
skip-dirs:
vendor
tests
pkg/generated
tests: false
timeout: 30m
gosec:
excludes:
- G115 # https://github.com/moby/moby/issues/48358#issuecomment-2323339603
issues:
exclude-files:
- "zz_generated_*"
exclude-rules:
- linters: govet
text: "^(nilness|structtag)"
- linters: revive
text: "should have comment"
- linters: revive
text: "should be of the form"
- linters: revive
text: "imported but not used as apierrors"