mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +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
|
- ineffassign
|
||||||
- logcheck
|
- logcheck
|
||||||
- staticcheck
|
- staticcheck
|
||||||
|
- stylecheck
|
||||||
- unused
|
- unused
|
||||||
|
|
||||||
linters-settings: # please keep this alphabetized
|
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
|
"-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
|
"-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:
|
unused:
|
||||||
go: "1.18"
|
go: "1.18"
|
||||||
|
Loading…
Reference in New Issue
Block a user