From 44ed09336dcb591de0deb0063f94c85ec8a5cd90 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Sun, 4 Jan 2026 15:18:48 +0100 Subject: [PATCH] Update golangci-lint (#17767) Update golangci-lint to latest. * Update revive config to ignore package name rules. Signed-off-by: SuperQ --- .golangci.yml | 5 +++++ Makefile.common | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 6dbbcc433d..0c866611e9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -182,6 +182,11 @@ linters: - name: unused-receiver - name: var-declaration - name: var-naming + # TODO(SuperQ): See: https://github.com/prometheus/prometheus/issues/17766 + arguments: + - [] + - [] + - - skip-package-name-checks: true testifylint: disable: - float-compare diff --git a/Makefile.common b/Makefile.common index 840bc0ea71..998da23093 100644 --- a/Makefile.common +++ b/Makefile.common @@ -61,7 +61,7 @@ PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_ SKIP_GOLANGCI_LINT := GOLANGCI_LINT := GOLANGCI_LINT_OPTS ?= -GOLANGCI_LINT_VERSION ?= v2.6.2 +GOLANGCI_LINT_VERSION ?= v2.7.2 GOLANGCI_FMT_OPTS ?= # golangci-lint only supports linux, darwin and windows platforms on i386/amd64/arm64. # windows isn't included here because of the path separator being different.