diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..9a5c81a --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,66 @@ +run: + timeout: 5m + +linters: + enable: + - bidichk + - bodyclose + - dogsled + - dupl + - errcheck + - errorlint + - exportloopref + - gocheckcompilerdirectives + - goconst + - gocritic + - gofmt + - gofumpt + - goimports + - revive + - gosec + - gosimple + - govet + - ineffassign + - lll + - loggercheck + - misspell + - nakedret + - nilerr + - nilnil + - nolintlint + - prealloc + - protogetter + - exportloopref + - staticcheck + - stylecheck + - typecheck + - unconvert + - unused + - wastedassign + - whitespace + - nolintlint + - asciicheck + - dupword + +issues: + exclude-rules: + - path: _test\.go + linters: + - gosec + - revive + - linters: + - lll + source: "https://" + max-same-issues: 50 + +linters-settings: + dogsled: + max-blank-identifiers: 3 + misspell: + locale: US + goimports: + local-prefixes: github.com/celestiaorg/ + dupl: + threshold: 200 + gofumpt: + extra-rules: true