diff --git a/.golangci.yaml b/.golangci.yaml index 556d0200b..23166c3aa 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -25,6 +25,10 @@ issues: max-same-issues: 0 linters-settings: + depguard: + include-go-root: true + packages-with-error-message: + - crypto/sha256: 'sha256 hashing must be done with github.com/minio/sha256-simd' dupl: # Tokens count to trigger issue, 150 by default. threshold: 100 @@ -99,6 +103,7 @@ linters: enable: - bodyclose - containedctx + - depguard - dupl - dupword - errcheck