-
Notifications
You must be signed in to change notification settings - Fork 3
/
.golangci.yaml
36 lines (34 loc) · 997 Bytes
/
.golangci.yaml
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
linters:
presets:
- bugs
- complexity
- format
- performance
- style
- unused
disable:
- deadcode # deprecated since v1.49.0
- depguard # we should just be careful with go.mod diffs
- exhaustivestruct # deprecated since v1.46.0
- golint # deprecated since v1.41.0
- ifshort # deprecated since v1.48.0
- interfacer # deprecated since v1.38.0
- maligned # deprecated since v1.38.0
- nosnakecase # deprecated since v1.48.1
- paralleltest # because testgroup manages its own parallelism
- scopelint # deprecated since v1.39.0
- structcheck # deprecated since v1.49.0
- varcheck # deprecated since v1.49.0
- wsl # because it's too strict
linters-settings:
gocyclo:
min-complexity: 10
gocognit:
min-complexity: 10
issues:
exclude-rules:
# This global variable is part of the API.
- path: "testgroup\\.go"
source: "^var RunInParallelParentTestName = "
linters:
- gochecknoglobals