diff --git a/.golangci.yml b/.golangci.yml index bdb4c715..332ce3b9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,12 +1,28 @@ # For documentation, see https://golangci-lint.run/usage/configuration/ - -run: - timeout: 5m - +version: "2" linters: enable: - - gofumpt - errorlint + - revive - unconvert - unparam - - revive + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - third_party$ + - builtin$ + - examples$ +formatters: + enable: + - gofumpt + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$