-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.golangci.toml
60 lines (51 loc) · 1.17 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
57
58
59
[run]
timeout = "10m"
[linters-settings.goconst]
min-len = 5
min-occurrences = 5
[linters-settings.exhaustive]
default-signifies-exhaustive = true
[linters-settings.revive]
ignore-generated-header = false
severity = "warning"
confidence = 3
[[linters-settings.depguard.rules.main.deny]]
pkg = "io/util"
desc = "Deprecated: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details."
[[linters-settings.depguard.rules.main.deny]]
pkg = "github.com/pkg/errors"
desc = "Should be replaced by standard lib errors package"
[linters-settings.gocritic]
enabled-checks = ["ruleguard"]
[linters]
disable-all = true
enable = [
"bodyclose",
"depguard",
"dogsled",
"errcheck",
"gochecknoinits",
"goconst",
"gocritic",
"goimports",
"goprintffuncname",
"gosimple",
"govet",
"ineffassign",
"misspell",
"nakedret",
"exportloopref",
"staticcheck",
"stylecheck",
"typecheck",
"unconvert",
"unused",
"whitespace",
"exhaustive",
"typecheck",
"asciicheck",
"errorlint",
"revive",
]
[issues]
exclude-use-default = false