forked from cilium/hubble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
50 lines (47 loc) · 1.19 KB
/
.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
49
50
# See https://golangci-lint.run/usage/configuration/ for available options.
# Also https://github.com/cilium/cilium/blob/master/.golangci.yaml as a
# reference.
linters:
disable-all: true
enable:
- asciicheck
- goerr113
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- revive
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
linters-settings:
gosimple:
go: "1.16"
govet:
enable-all: true
disable:
- fieldalignment
- shadow
staticcheck:
go: "1.16"
unused:
go: "1.16"
issues:
# Default rules exclude Go doc comments check, which is rather unfortunate.
# In order to enable Go doc checks, defaults rules have to be disabled.
# See https://github.com/golangci/golangci-lint/issues/456 for details.
exclude-use-default: false
exclude:
- (G104|G307) # EXC0008 gosec: Duplicated errcheck checks
exclude-rules:
- linters: [staticcheck]
text: "SA1019" # deprecated methods
- linters: [goerr113]
text: "do not define dynamic errors, use wrapped static errors instead"
- linters: [gosec]
text: "G402" # TLS InsecureSkipVerify may be true