-
-
Notifications
You must be signed in to change notification settings - Fork 461
/
.golangci.toml
45 lines (39 loc) · 939 Bytes
/
.golangci.toml
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
[run]
concurrency = 4
tests = false
[linters-settings]
[linters-settings.gocyclo]
min-complexity = 20
[linters-settings.goconst]
min-len = 2
min-occurrences = 2
[linters-settings.misspell]
locale = "US"
[linters]
# White-listing, to be more CI safe.
disable-all = true
# @see https://github.com/golangci/golangci-lint#enabled-by-default-linters
enable = [
"staticcheck",
"gosimple",
"ineffassign",
"typecheck",
"govet",
# "errcheck",
"unused",
"structcheck",
"varcheck",
"deadcode",
"stylecheck",
"gosec",
"interfacer",
"unconvert",
# "goconst",
"gocyclo",
# "maligned",
"depguard",
"misspell",
"unparam",
"scopelint", # Would like to ignore *_test.go files, but can't atm.
"gocritic",
]