mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +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
|
||||
- testifylint
|
||||
- unused
|
||||
- usestdlibvars
|
||||
|
||||
linters-settings: # please keep this alphabetized
|
||||
custom:
|
||||
|
@ -146,6 +146,7 @@ linters:
|
||||
- stylecheck
|
||||
- testifylint
|
||||
- unused
|
||||
- usestdlibvars
|
||||
disable:
|
||||
# https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507008359
|
||||
- errcheck
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user