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
# text: Error return value of `outputPrinter.Print` is not checked
214
218
- linters:
215
-
- gosec
216
-
text: 'G103: Use of unsafe calls should be audited'
219
+
- gosec
220
+
text: "G103: Use of unsafe calls should be audited"
217
221
path: .*(api|types|test)\/.*\/.*conversion.*\.go$
218
222
- linters:
219
223
- staticcheck
220
-
text: 'QF1008: could remove embedded field .*'
224
+
text: "QF1008: could remove embedded field .*"
221
225
# TODO: change to use time.Time.Equal
222
226
- linters:
223
227
- staticcheck
224
-
text: 'QF1009: probably want to use time.Time.Equal instead'
228
+
text: "QF1009: probably want to use time.Time.Equal instead"
225
229
- linters:
226
230
- revive
227
231
# Ignoring stylistic checks for generated code
@@ -233,13 +237,13 @@ linters:
233
237
# Ignoring stylistic checks for generated code
234
238
path: .*(api|types)\/.*\/.*conversion.*\.go$
235
239
# By convention, receiver names in a method should reflect their identity.
236
-
text: 'receiver-naming: receiver name (.+) should be consistent with previous receiver name (.+)'
240
+
text: "receiver-naming: receiver name (.+) should be consistent with previous receiver name (.+)"
237
241
- linters:
238
242
- revive
239
243
# Ignoring stylistic checks for generated code
240
244
path: .*(api|types|test)\/.*\/.*conversion.*\.go$
241
245
# Checking if an error is nil to just after return the error or nil is redundant
242
-
text: 'if-return: redundant if ...; err != nil check, just return error instead'
246
+
text: "if-return: redundant if ...; err != nil check, just return error instead"
243
247
- linters:
244
248
- revive
245
249
text: 'exported: exported method .*\.(Reconcile|SetupWithManager|SetupWebhookWithManager) should have comment or be unexported'
@@ -268,7 +272,7 @@ linters:
268
272
text: Error return value of (.+) is not checked
269
273
- linters:
270
274
- gosec
271
-
text: 'G108: Profiling endpoint is automatically exposed on /debug/pprof'
275
+
text: "G108: Profiling endpoint is automatically exposed on /debug/pprof"
272
276
- linters:
273
277
- godot
274
278
path: (.*)/(v1beta1|v1beta2)/(.*)types.go
@@ -282,17 +286,17 @@ linters:
282
286
- linters:
283
287
- revive
284
288
path: .*/defaults.go
285
-
text: 'var-naming: don''t use underscores in Go names; func (.+) should be (.+)'
289
+
text: "var-naming: don't use underscores in Go names; func (.+) should be (.+)"
286
290
- linters:
287
291
- revive
288
292
path: .*/.*(mock|gc_).*/.+\.go
289
-
text: 'var-naming: don''t use an underscore in package name'
293
+
text: "var-naming: don't use an underscore in package name"
290
294
- linters:
291
295
- revive
292
296
# Ignoring stylistic checks for generated code
293
297
path: .*(api|types|test)\/.*\/.*conversion.*\.go$
294
298
# This rule warns when initialism, variable or package naming conventions are not followed.
295
-
text: 'var-naming: don''t use underscores in Go names'
299
+
text: "var-naming: don't use underscores in Go names"
296
300
- linters:
297
301
- unparam
298
302
text: always receives
@@ -309,20 +313,23 @@ linters:
309
313
text: cyclomatic complexity
310
314
- linters:
311
315
- gocritic
312
-
text: 'appendAssign: append result not assigned to the same slice'
316
+
text: "appendAssign: append result not assigned to the same slice"
313
317
- path: (.+)\.go$
314
318
text: (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
315
319
- path: (.+)\.go$
316
-
text: 'exported: (func|type) name will be used as (.+) by other packages, and that stutters; consider calling this (.+)'
320
+
text: "exported: (func|type) name will be used as (.+) by other packages, and that stutters; consider calling this (.+)"
317
321
- path: (.+)\.go$
318
322
text: (G104|G107|G404|G505|ST1000)
319
323
- path: (.+)\.go$
320
-
text: 'G108: Profiling endpoint is automatically exposed on /debug/pprof'
324
+
text: "G108: Profiling endpoint is automatically exposed on /debug/pprof"
321
325
- path: (.+)\.go$
322
326
text: net/http.Get must not be called
323
327
- linters:
324
328
- goconst
325
329
path: (.+)_test\.go
330
+
- linters:
331
+
- staticcheck
332
+
text: 'SA1019: "sigs.k8s.io/cluster-api/(.*)" is deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.'
0 commit comments