From 06ce6156839932dceb95f5795b331534519c4235 Mon Sep 17 00:00:00 2001 From: Florian Schlegel Date: Mon, 4 Aug 2025 17:45:02 +0200 Subject: [PATCH] fix: replace deprecated linter exportloopref with copyloopvar --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index dc3b194..baab10d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -128,7 +128,7 @@ linters: - errname # Checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error`. [fast: false, auto-fix: false] - errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13. [fast: false, auto-fix: false] - exhaustive # check exhaustiveness of enum switch statements [fast: false, auto-fix: false] - - exportloopref # checks for pointers to enclosing loop variables [fast: false, auto-fix: false] + - copyloopvar # Check for assigning the loop variable to another variable. [fast: true, auto-fix: false] - forbidigo # Forbids identifiers [fast: false, auto-fix: false] - forcetypeassert # finds forced type assertions [fast: true, auto-fix: false] - gocheckcompilerdirectives # Checks that go compiler directive comments (//go:) are valid. [fast: true, auto-fix: false]