From 466ba0f8dbe7a93571005cf971bb2fe168a3552d Mon Sep 17 00:00:00 2001 From: Renovate Date: Mon, 24 Mar 2025 12:53:56 +0000 Subject: [PATCH] chore(deps): update pre-commit hook golangci/golangci-lint to v2 --- .golangci.yml | 21 ++++++++++++++++++++- .pre-commit-config.yaml | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) 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