diff --git a/golangci-lint b/golangci-lint index 8b13789..889c4e4 100644 --- a/golangci-lint +++ b/golangci-lint @@ -1 +1,39 @@ +linters: + enable: + - gofmt + - govet + - errcheck + - staticcheck + - gosimple + - ineffassign + - typecheck + - unused + - misspell + - gosec + - revive + - gocyclo +linters-settings: + gocyclo: + min-complexity: 15 + revive: + rules: + - name: exported + arguments: + - "checkPrivateReceivers" + - "sayRepetitiveInsteadOfStutters" + +run: + deadline: 5m + tests: true + skip-dirs: + - vendor/ + - third_party/ + +issues: + exclude-rules: + - path: _test\.go + linters: + - gocyclo + - errcheck + - dupl