-
Notifications
You must be signed in to change notification settings - Fork 125
Expand file tree
/
Copy path.golangci.yml
More file actions
38 lines (38 loc) · 786 Bytes
/
.golangci.yml
File metadata and controls
38 lines (38 loc) · 786 Bytes
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
version: "2"
linters:
enable:
- misspell
- revive
disable:
- gocyclo
settings:
gocyclo:
min-complexity: 20
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- path: (.+)\.go$
text: SA1019 # CPUTimesStat.Total is deprecated
- path: (.+)\.go$
text: SA5008 # duplicate struct tag "choice" (staticcheck)
- path: (.+)\.go$
text: QF1001 # could apply De Morgan's law
- linters:
- revive
text: "var-naming: avoid"
paths:
- third_party$
- builtin$
- examples$
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$