mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #127769 from mmorel-35/golangci-lint/usestdlibvars
fix: apply usestdlibvars linter with golangci strict and hints
This commit is contained in:
commit
3d7c95f241
@ -103,6 +103,7 @@ linters:
|
|||||||
- stylecheck
|
- stylecheck
|
||||||
- testifylint
|
- testifylint
|
||||||
- unused
|
- unused
|
||||||
|
- usestdlibvars
|
||||||
|
|
||||||
linters-settings: # please keep this alphabetized
|
linters-settings: # please keep this alphabetized
|
||||||
custom:
|
custom:
|
||||||
|
@ -146,6 +146,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
|
||||||
|
@ -161,6 +161,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