You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company
7
7
# SPDX-License-Identifier: Apache-2.0
8
8
9
9
version: "2"
@@ -55,9 +55,10 @@ linters:
55
55
- govet
56
56
- ineffassign
57
57
- intrange
58
+
- iotamixing
58
59
- misspell
60
+
- modernize
59
61
- nilerr
60
-
- noctx
61
62
- nolintlint
62
63
- nosprintfhostport
63
64
- perfsprint
@@ -72,6 +73,9 @@ linters:
72
73
- usetesting
73
74
- whitespace
74
75
settings:
76
+
dupword:
77
+
# Do not choke on SQL statements like `INSERT INTO things (foo, bar, baz) VALUES (TRUE, TRUE, TRUE)`.
78
+
ignore: [ "TRUE", "FALSE", "NULL" ]
75
79
errcheck:
76
80
check-type-assertions: false
77
81
# Report about assignment of errors to blank identifier.
@@ -125,6 +129,8 @@ linters:
125
129
replace-allow-list:
126
130
# for go-pmtud
127
131
- github.com/mdlayher/arp
132
+
# for github.com/sapcc/vpa_butler
133
+
- k8s.io/client-go
128
134
toolchain-forbidden: true
129
135
go-version-pattern: 1\.\d+(\.0)?$
130
136
gosec:
@@ -139,6 +145,13 @@ linters:
139
145
enable-all: true
140
146
nolintlint:
141
147
require-specific: true
148
+
modernize:
149
+
disable:
150
+
# omitzero requires removing omitempty tags in kubernetes api struct types which are nested, which is intepreted by controller-gen and breaks the CRDs.
151
+
- omitzero
152
+
perfsprint:
153
+
# modernize generates nicer fix code
154
+
concat-loop: false
142
155
staticcheck:
143
156
dot-import-whitelist:
144
157
- github.com/majewsky/gg/option
@@ -163,13 +176,13 @@ linters:
163
176
exclusions:
164
177
generated: lax
165
178
presets:
166
-
- comments
167
179
- common-false-positives
168
180
- legacy
169
181
- std-error-handling
170
182
rules:
171
183
- linters:
172
184
- bodyclose
185
+
- revive
173
186
path: _test\.go
174
187
# It is idiomatic Go to reuse the name 'err' with ':=' for subsequent errors.
0 commit comments