mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-28 05:36:08 +00:00
fix: apply usestdlibvars linter with golangci strict and hints
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -92,6 +92,7 @@ linters:
|
||||
- stylecheck
|
||||
- testifylint
|
||||
- unused
|
||||
- usestdlibvars
|
||||
|
||||
linters-settings: # please keep this alphabetized
|
||||
custom:
|
||||
|
@@ -135,6 +135,7 @@ linters:
|
||||
- stylecheck
|
||||
- testifylint
|
||||
- unused
|
||||
- usestdlibvars
|
||||
disable:
|
||||
# https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507008359
|
||||
- errcheck
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user