From b0a1757e383bf58e9caf7293ef78d0678c319478 Mon Sep 17 00:00:00 2001 From: Renovate Date: Mon, 24 Mar 2025 12:59:05 +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 6b69915..0859d03 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,7 +37,7 @@ repos: - id: go-test - id: gofumpt - repo: https://github.com/golangci/golangci-lint - rev: v1.64.8 + rev: v2.0.0 hooks: - id: golangci-lint-full - repo: https://github.com/gitleaks/gitleaks