mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 02:08:13 +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
	 Kubernetes Prow Robot
					Kubernetes Prow Robot