summaryrefslogtreecommitdiffstats
path: root/.golangci.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.golangci.yaml')
-rw-r--r--.golangci.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.golangci.yaml b/.golangci.yaml
new file mode 100644
index 0000000..1dee826
--- /dev/null
+++ b/.golangci.yaml
@@ -0,0 +1,40 @@
+run:
+ timeout: 5m
+
+ skip-dirs:
+ - internal
+ - pkg/registry
+
+issues:
+ exclude-rules:
+ - path: test # Excludes /test, *_test.go etc.
+ linters:
+ - gosec
+
+linters:
+ enable:
+ - asciicheck
+ - depguard
+ - errorlint
+ - gofmt
+ - gosec
+ - goimports
+ - importas
+ - prealloc
+ - revive
+ - misspell
+ - stylecheck
+ - tparallel
+ - unconvert
+ - unparam
+ - unused
+ - whitespace
+
+ disable:
+ - errcheck
+
+linters-settings:
+ depguard:
+ include-go-root: true
+ packages-with-error-message:
+ - crypto/sha256: "use crypto.SHA256 instead"