mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
Merge pull request #111101 from Abirdcfly/220707
enable stylecheck check in golangci
This commit is contained in:
commit
6f9fd45954
@ -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 isn’t allowed
|
||||
]
|
||||
stylecheck:
|
||||
checks: [
|
||||
"ST1019", # Importing the same package multiple times.
|
||||
]
|
||||
unused:
|
||||
go: "1.18"
|
||||
|
Loading…
Reference in New Issue
Block a user