fix: apply usestdlibvars linter with golangci strict and hints

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL 2024-10-01 08:36:50 +02:00
parent 22a30e7cbb
commit 25222cb812
3 changed files with 5 additions and 0 deletions

View File

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

View File

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

View File

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