From ba2f8b7ace466d852c5a06db0116b0f7f5eac49a Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 24 Mar 2025 17:16:53 +0000
Subject: [PATCH] chore(deps): update dependency golangci/golangci-lint to v2
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
---
 .golangci.yml | 14 +++++++++++---
 Makefile      |  2 +-
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/.golangci.yml b/.golangci.yml
index 8d05e483..ebbd1747 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -1,3 +1,11 @@
----
-run:
-  timeout: 5m
+version: "2"
+linters:
+  settings:
+    staticcheck:
+      checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-ST1005"] # golangci-lint's default, we add -ST1005
+  exclusions:
+    presets:
+      - comments
+      - common-false-positives
+      - legacy
+      - std-error-handling
diff --git a/Makefile b/Makefile
index 3cf077f3..80d639c9 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ GOARCH ?= $(shell go env GOARCH)
 # N/B: This value is managed by Renovate, manual changes are
 # possible, as long as they don't disturb the formatting
 # (i.e. DO NOT ADD A 'v' prefix!)
-GOLANGCI_LINT_VERSION := 1.64.8
+GOLANGCI_LINT_VERSION := 2.0.0
 
 ifeq ($(GOBIN),)
 GOBIN := $(GOPATH)/bin