diff --git a/.golangci.yml b/.golangci.yml index 49d25da..5381cc5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,22 @@ +version: "2" run: allow-parallel-runners: true - timeout: 5m +linters: + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - third_party$ + - builtin$ + - examples$ +formatters: + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 69c6c42..148066f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,6 +36,6 @@ repos: - id: go-vet - id: gofumpt - repo: https://github.com/golangci/golangci-lint - rev: v1.64.8 + rev: v2.0.0 hooks: - id: golangci-lint