diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..d4f9735 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,38 @@ +--- +linters: + enable: + - asciicheck + - unused + - errcheck + - errorlint + - gofmt + - goimports + - gosec + - gocritic + - importas + - prealloc + - revive + - misspell + - stylecheck + - tparallel + - unconvert + - unparam + - whitespace +output: + uniq-by-line: false +issues: + exclude-rules: + - path: _test\.go + linters: + - errcheck + - gosec + max-issues-per-linter: 0 + max-same-issues: 0 +linters-settings: + revive: + rules: + - name: dot-imports + disabled: true +run: + issues-exit-code: 1 + timeout: 10m