-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.toml
56 lines (46 loc) · 1.13 KB
/
.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
50
51
52
53
54
55
56
[run]
concurrency = 4
tests = false
[[issues.exclude-rules]]
linters = ["misspell"]
source = "cancelled"
[linters-settings]
[linters-settings.gocognit]
min-complexity = 12
[linters-settings.gofumpt]
lang-version = "1.20"
extra-rules = true
[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-settings.exhaustive]
default-signifies-exhaustive = true
[linters]
# Allow-listing, to be more CI safe.
disable-all = true
# @see https://golangci-lint.run/usage/linters/#enabled-by-default-linters
enable = [
"staticcheck",
"gosimple",
"ineffassign",
"typecheck",
"govet",
"errcheck",
"unused",
"exhaustive",
"stylecheck",
"gosec",
"unconvert",
"goconst",
"depguard",
"misspell",
"unparam",
"prealloc",
"gofumpt",
"exportloopref",
"gocritic",
]