enable stylecheck check in golangci

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
This commit is contained in:
Abirdcfly 2022-07-13 10:41:05 +08:00
parent 2a017f94bc
commit aeed9ecc37

View File

@ -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 isnt allowed
]
stylecheck:
checks: [
"ST1019", # Importing the same package multiple times.
]
unused:
go: "1.18"