NVIDIA GPU loadable plugin
Source
1
+
# for golanci-lint version 1.61.0
2
+
# everything (linter definitions) should be sorted in alphabetical order by name
3
+
4
+
run
5
+
timeout 1m
6
+
allow-parallel-runnerstrue
7
+
8
+
output
9
+
sort-resultstrue
10
+
11
+
linters-settings
12
+
# declaration order
13
+
decorder
14
+
dec-order
15
+
const
16
+
var
17
+
type
18
+
func
19
+
disable-dec-order-checkfalse
20
+
disable-init-func-first-checkfalse
21
+
22
+
# unchecked errors
23
+
errcheck
24
+
check-type-assertionstrue
25
+
check-blanktrue
26
+
27
+
gocritic
28
+
disabled-checks
29
+
unnamedResult
30
+
# cool idea, quite annoying in practice as nolint directive often
31
+
# requires weird placements to take effect
32
+
whyNoLint
33
+
enabled-tags# enable all
34
+
diagnostic
35
+
style
36
+
performance
37
+
experimental
38
+
opinionated
39
+
40
+
# cyclomatic complexity
41
+
gocyclo
42
+
min-complexity10
43
+
44
+
# import block list
45
+
gomodguard
46
+
blocked
47
+
modules
48
+
io/ioutil
49
+
local_replace_directivesfalse
50
+
51
+
govet
52
+
enable-alltrue
53
+
disable
54
+
fieldalignment
55
+
56
+
# reports big interfaces
57
+
interfacebloat
58
+
max6
59
+
60
+
lll
61
+
line-length120
62
+
tab-width4
63
+
64
+
makezero
65
+
alwaystrue
66
+
67
+
revive
68
+
enable-all-rulestrue
69
+
severity error
70
+
rules
71
+
name argument-limit
72
+
arguments
73
+
5
74
+
75
+
name comment-spacings
76
+
arguments
77
+
# allow //nolint:... (its a directive) nolint
78
+
79
+
# comment for exported
80
+
name exported
81
+
arguments
82
+
checkPrivateReceivers
83
+
disableStutteringCheck
84
+
85
+
name function-result-limit
86
+
arguments
87
+
4
88
+
89
+
name max-public-structs
90
+
arguments
91
+
5
92
+
93
+
# disabled
94
+
95
+
# like gomnd, annoying
96
+
name add-constant
97
+
disabledtrue
98
+
name banned-characters # useless, as every char needs to be configured
99
+
disabledtrue
100
+
# common to have a public faceing signature and internal uglier signature
101
+
# Walk and walk (for example)
102
+
name confusing-naming
103
+
disabledtrue
104
+
name confusing-results
105
+
disabledtrue
106
+
# cyclomatic complexity checks are enough, no need to complicate life
107
+
# with two different metrics for complexity.
108
+
name cognitive-complexity
109
+
disabledtrue
110
+
# duplicate
111
+
name cyclomatic
112
+
disabledtrue
113
+
# duplicate
114
+
name file-header
115
+
disabledtrue
116
+
# cool idea, but warning about every bool param is not acceptable
117
+
name flag-parameter
118
+
disabledtrue
119
+
# cyclomatic complexety checks are enough
120
+
name function-length
121
+
disabledtrue
122
+
# duplicate
123
+
name line-length-limit
124
+
disabledtrue
125
+
# duplicate
126
+
name unhandled-error
127
+
disabledtrue
128
+
# duplicate
129
+
name package-comments
130
+
disabledtrue
131
+
132
+
stylecheck
133
+
checks
134
+
all
135
+
# Incorrect or missing package comment -ST1000
136
+
# Poorly chosen identifier -ST1003
137
+
dot-import-whitelist
138
+
http-status-code-whitelist
139
+
140
+
# tag order
141
+
tagalign
142
+
align false # could be true if https://github.com/momaek/formattag is used.
143
+
order
144
+
yaml
145
+
json
146
+
toml
147
+
mapstructure
148
+
binding
149
+
validate
150
+
151
+
# long, flat, ribbon-shaped pasta
152
+
# also
153
+
# struct tag naming convention checker
154
+
tagliatelle
155
+
case
156
+
rules
157
+
json snake
158
+
yaml camel
159
+
xml camel
160
+
bson camel
161
+
avro snake
162
+
mapstructure kebab
163
+
env upperSnake
164
+
envconfig upperSnake
165
+
166
+
wrapcheck
167
+
ignoreSigs
168
+
# defaults
169
+
.Errorf(
170
+
errors.New(
171
+
errors.Unwrap(
172
+
.Wrap(
173
+
.Wrapf(
174
+
.WithMessage(
175
+
.WithMessagef(
176
+
.WithStack(
177
+
# zabbix custom errors
178
+
errs.New(
179
+
180
+
linters
181
+
enable-alltrue
182
+
disable
183
+
# gomodguard is better
184
+
depguard
185
+
186
+
# always check marshal errors
187
+
errchkjson
188
+
189
+
# triggers on switches with default case.
190
+
exhaustive
191
+
192
+
# allow use go default zero values .
193
+
exhaustruct
194
+
195
+
# cyclomatic complexity checkers already enforce limit on function length.
196
+
# no need to count lines.
197
+
funlen
198
+
199
+
# conflicts with gci and goimports. the formatter should still be used,
200
+
# only lint can't enforce it.
201
+
gofumpt
202
+
203
+
# conflicts with gofumpt and gci. the tool still should be used but gci
204
+
# needs be the last formatter.
205
+
goimports
206
+
207
+
# not many cases when this is helpful were observed
208
+
mnd
209
+
210
+
# revive warns about this
211
+
nakedret
212
+
213
+
# we don't do black box testing in unit tests.
214
+
testpackage
215
+
216
+
# having one length vars is fine.
217
+
varnamelen
218
+
219
+
# deprecated
220
+
execinquery
221
+
exportloopref
222
+
gomnd
223
+
224
+
issues
225
+
exclude-use-defaultfalse
226
+
max-issues-per-linter 0 # unlimited
227
+
max-same-issues 0 # unlimited
228
+
exclude-rules
229
+
path _test\.go
230
+
linters
231
+
dupl
232
+
err113
233
+
errcheck
234
+
gocritic
235
+
maintidx
236
+
revive
237
+
wrapcheck
238
+
239
+
severity
240
+
default-severity error