mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user