mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
enable stylecheck check in golangci
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
This commit is contained in:
parent
2a017f94bc
commit
aeed9ecc37
@ -23,6 +23,7 @@ linters:
|
||||
- ineffassign
|
||||
- logcheck
|
||||
- staticcheck
|
||||
- stylecheck
|
||||
- unused
|
||||
|
||||
linters-settings: # please keep this alphabetized
|
||||
@ -42,5 +43,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