-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.toml
104 lines (94 loc) · 2.01 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# FILE IS AUTOMATICALLY MANAGED BY github.com/vegaprotocol/terraform//github
[run]
allow-parallel-runners = true
print-linter-name = true
timeout = '5m0s'
[issues]
max-issues-per-linter = 0
max-same-issues = 0
[linters]
enable-all = true
disable = [
"nosnakecase",
"structcheck",
"varcheck",
"deadcode",
"promlinter",
"wrapcheck",
"tagliatelle",
"paralleltest",
"nlreturn",
"gomnd",
"goerr113",
"tparallel",
"testpackage",
"gochecknoglobals",
"forcetypeassert",
"exhaustivestruct",
"exhaustive",
"errorlint",
"cyclop",
"wsl",
"unparam",
"scopelint",
"revive",
"nestif",
"maligned",
"lll",
"interfacer",
"gosec",
"gomoddirectives",
"golint",
"goimports",
"godox",
"gocritic",
"goconst",
"gocognit",
"gochecknoinits",
"stylecheck",
"gci",
"errcheck",
"dupl",
"dogsled",
"funlen",
"gocyclo",
"errname",
# New in golangci-lint 1.45 but would be nice to address
"maintidx",
"contextcheck",
"containedctx",
"varnamelen",
"ireturn",
"nilnil",
"errchkjson",
"ifshort",
"predeclared",
"exhaustruct",
"nolintlint",
]
[[issues.exclude-rules]]
linters = ["staticcheck"]
text = "SA1019:"
[[issues.exclude-rules]]
linters = ["staticcheck"]
text = "SA5008:"
[[issues.exclude-rules]]
path = "_test\\.go"
linters = ["forbidigo"]
[[issues.exclude-rules]]
path = "cmd/"
linters = ["forbidigo"]
[[issues.exclude-rules]]
path = "flags.go"
linters = ["forbidigo"]
[[issues.exclude-rules]]
path = "print.go"
linters = ["forbidigo"]
[linters-settings.forbidigo]
forbid = ["fmt\\.Print.*"]
# protoc doesn't want us copying protobuf messages because they can have some internal state
# that shouldn't be copied; but we do it a lot. see below for details
# https://stackoverflow.com/questions/64183794/why-do-the-go-generated-protobuf-files-contain-mutex-locks
[[issues.exclude-rules]]
linters = ["govet"]
text = "impl.MessageState contains sync.Mutex"