mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +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:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user