✨ Optimizations after golangci v2 update #7602
Annotations
10 errors
Run linter:
pkg/machinery/scaffold_test.go#L178
ST1008: error should be returned as the last argument (staticcheck)
|
Run linter:
pkg/machinery/scaffold_test.go#L183
ST1008: error should be returned as the last argument (staticcheck)
|
Run linter:
pkg/machinery/scaffold_test.go#L188
ST1008: error should be returned as the last argument (staticcheck)
|
Run linter:
pkg/plugins/external/helpers.go#L321
QF1001: could apply De Morgan's law (staticcheck)
|
Run linter:
pkg/plugins/golang/deploy-image/v1alpha1/api.go#L209
QF1008: could remove embedded field "GVK" from selector (staticcheck)
|
Run linter:
pkg/plugins/golang/deploy-image/v1alpha1/api.go#L210
QF1008: could remove embedded field "GVK" from selector (staticcheck)
|
Run linter:
pkg/plugins/golang/deploy-image/v1alpha1/api.go#L211
QF1008: could remove embedded field "GVK" from selector (staticcheck)
|
Run linter:
pkg/plugins/golang/v4/scaffolds/internal/templates/webhooks/webhook.go#L88
QF1004: could use strings.ReplaceAll instead (staticcheck)
|
Run linter:
pkg/plugins/optional/helm/v1alpha/scaffolds/init.go#L217
QF1003: could use tagged switch on webhookConfig.Kind (staticcheck)
|
Run linter:
pkg/plugins/optional/helm/v1alpha/scaffolds/init.go#L313
QF1004: could use strings.ReplaceAll instead (staticcheck)
|
Loading