mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +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:
parent
22a30e7cbb
commit
25222cb812
@ -92,6 +92,7 @@ linters:
|
|||||||
- stylecheck
|
- stylecheck
|
||||||
- testifylint
|
- testifylint
|
||||||
- unused
|
- unused
|
||||||
|
- usestdlibvars
|
||||||
|
|
||||||
linters-settings: # please keep this alphabetized
|
linters-settings: # please keep this alphabetized
|
||||||
custom:
|
custom:
|
||||||
|
@ -135,6 +135,7 @@ linters:
|
|||||||
- stylecheck
|
- stylecheck
|
||||||
- testifylint
|
- testifylint
|
||||||
- unused
|
- unused
|
||||||
|
- usestdlibvars
|
||||||
disable:
|
disable:
|
||||||
# https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507008359
|
# https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507008359
|
||||||
- errcheck
|
- errcheck
|
||||||
|
@ -150,6 +150,9 @@ linters:
|
|||||||
- stylecheck
|
- stylecheck
|
||||||
- testifylint
|
- testifylint
|
||||||
- unused
|
- unused
|
||||||
|
{{- if not .Base }}
|
||||||
|
- usestdlibvars
|
||||||
|
{{- end}}
|
||||||
{{- if .Strict}}
|
{{- if .Strict}}
|
||||||
disable:
|
disable:
|
||||||
# https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507008359
|
# https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507008359
|
||||||
|
Loading…
Reference in New Issue
Block a user