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
commit 6f9fd45954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"