From 114ba0a29f786fa267a9314ebbed4ae9caae1856 Mon Sep 17 00:00:00 2001 From: sneak Date: Sun, 4 Oct 2026 08:06:40 +0000 Subject: [PATCH] Disable the deprecated gomodguard linter (closes #116) golangci-lint v2.12 deprecates gomodguard in favour of gomodguard_v2. With `default: all` both ran, and every lint run printed the deprecation warning. Disable the old name, the same way wsl is disabled for wsl_v5; gomodguard_v2 stays enabled. The old linter had no settings here, so there is nothing to carry over. Model: opus-5-5 --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 26b1610..8a90995 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -16,6 +16,7 @@ linters: - depguard # Dependency allow/block lists - godot # Requires comments to end with periods - wsl # Deprecated, replaced by wsl_v5 + - gomodguard # Deprecated, replaced by gomodguard_v2 - wrapcheck # Too verbose for internal packages - varnamelen # Short names like db, id are idiomatic Go settings: -- 2.54.0