From 59e475042ddfe136f4901b3f9040e43ab7d39d5b Mon Sep 17 00:00:00 2001 From: Tom Pantelis Date: Tue, 27 Aug 2024 11:01:03 -0400 Subject: [PATCH] Replace deprecated exportloopref linter with copyloopvar Signed-off-by: Tom Pantelis --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 8b4661a53..7c733e04d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -43,6 +43,7 @@ linters: - bidichk - bodyclose - contextcheck + - copyloopvar # - cyclop # This is equivalent to gocyclo # - depguard # depguard now denies by default, it should only be enabled if we actually use it - dogsled @@ -54,7 +55,6 @@ linters: - errorlint - exhaustive # - exhaustivestruct # Not recommended for general use - meant to be used only for special cases - - exportloopref # - forbidigo # We don't forbid any statements # - forcetypeassert # There are many unchecked type assertions that would be the result of a programming error so the # reasonable recourse would be to panic anyway if checked so this doesn't seem useful