-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.toml
49 lines (43 loc) · 933 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
go = "1.22"
sort-results = true
[linters]
enable-all = true
disable = [
# deprecated linters
"ifshort",
"deadcode",
"maligned",
"exhaustivestruct",
"interfacer",
"varcheck",
"golint",
"nosnakecase",
"scopelint",
"structcheck",
# don't have control over serialized key names
"tagliatelle",
# It's a CLI. We use globals
"gochecknoglobals",
# Cobra uses inits
"gochecknoinits",
# too verbose
"exhaustruct",
# don't care
"godot",
# assess later
"wrapcheck",
"varnamelen",
"gomnd",
"lll",
"cyclop",
"prealloc",
]
[issues]
exclude = [
"Error return value of `\\w+\\.MarkPersistentFlagRequired` is not checked",
"Error return value of `\\(\\*github\\.com/spf13/pflag\\.FlagSet\\)\\.Mark(Hidden|Deprecated)` is not checked",
"use of `fmt\\.Print(|f|ln)` forbidden by pattern"
]
exclude-dirs = [
"version"
]