-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.toml
49 lines (42 loc) · 992 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
47
48
49
[run]
concurrency = 4
tests = false
[linters-settings]
[linters-settings.gocyclo]
min-complexity = 15
[linters-settings.goconst]
min-len = 2
min-occurrences = 2
[linters-settings.misspell]
locale = "US"
[linters-settings.errcheck]
ignore = "fmt:.*,github.com/go-kit/kit/log:^Log$"
[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",
"gocritic",
]