diff --git a/.golangci.yaml b/.golangci.yaml index a4232559428..a6399a5260d 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -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"