Merge pull request #111101 from Abirdcfly/220707

enable stylecheck check in golangci
This commit is contained in:
Kubernetes Prow Robot
2022-07-18 21:56:27 -07:00
committed by GitHub

View File

@@ -23,6 +23,7 @@ linters:
- ineffassign
- logcheck
- staticcheck
- stylecheck
- unused
linters-settings: # please keep this alphabetized
@@ -39,5 +40,9 @@ linters-settings: # please keep this alphabetized
"-SA1019", # TODO(fix) Using a deprecated function, variable, constant or field
"-SA2002" # TODO(fix) Called testing.T.FailNow or SkipNow in a goroutine, which isnt allowed
]
stylecheck:
checks: [
"ST1019", # Importing the same package multiple times.
]
unused:
go: "1.18"