-
Notifications
You must be signed in to change notification settings - Fork 8
/
.golangci.toml
46 lines (40 loc) · 956 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
46
[run]
concurrency = 4
tests = false
[linters-settings]
[linters-settings.gocyclo]
min-complexity = 10
[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",
"prealloc",
"scopelint", # Would like to ignore *_test.go files, but can't atm.
"gocritic",
]