Merge pull request #127769 from mmorel-35/golangci-lint/usestdlibvars

fix: apply usestdlibvars linter with golangci strict and hints
This commit is contained in:
Kubernetes Prow Robot 2024-10-23 02:21:42 +01:00 committed by GitHub
commit 3d7c95f241
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 0 deletions

View File

@ -103,6 +103,7 @@ linters:
- stylecheck
- testifylint
- unused
- usestdlibvars
linters-settings: # please keep this alphabetized
custom:

View File

@ -146,6 +146,7 @@ linters:
- stylecheck
- testifylint
- unused
- usestdlibvars
disable:
# https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507008359
- errcheck

View File

@ -161,6 +161,9 @@ linters:
- stylecheck
- testifylint
- unused
{{- if not .Base }}
- usestdlibvars
{{- end}}
{{- if .Strict}}
disable:
# https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507008359