-
Notifications
You must be signed in to change notification settings - Fork 66
/
.golangci.toml
66 lines (60 loc) · 1.43 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
60
61
62
63
64
65
66
[issues]
exclude-files = ["data/.*\\.gen\\.go", "data/generic_nullable_vector\\.go", "data/generic_vector\\.go"]
[linters-settings.golint]
min-confidence = 1
[linters-settings.goconst]
min-len = 5
min-occurrences = 5
[linters-settings.revive]
ignore-generated-header = false
[linters-settings.misspell]
ignore-words = ["unknwon"]
[linters-settings.depguard.rules.main]
allow = [] # allow all
deny = [
{ pkg = "io/ioutil", 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]
disable-all = true
enable = [
"bodyclose",
"depguard",
"dogsled",
"errcheck",
"gochecknoinits",
"goconst",
"gocritic",
"goimports",
"goprintffuncname",
"gosec",
"gosimple",
"govet",
"ineffassign",
"misspell",
"nakedret",
"rowserrcheck",
"copyloopvar",
"staticcheck",
"stylecheck",
"typecheck",
"unconvert",
"unused",
"whitespace",
"gocyclo",
"unparam",
"dogsled",
"asciicheck",
"errorlint",
"sqlclosecheck",
"thelper",
"revive"
]
# Don't require that errors are included through wrapping, since might not always want to wrap an error
[[issues.exclude-rules]]
linters = ["errorlint"]
text = "non-wrapping format verb for fmt.Errorf"
[[issues.exclude-rules]]
linters = ["staticcheck"]
text = "SA1019"
[linters-settings.gosec]
excludes = ["G115"]