From 6c02409764d80cf4a58579c70380b1af5e38f1e1 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Wed, 6 Nov 2024 15:39:21 +0200 Subject: [PATCH] refactor: remove unnecessary var copy in for (#682) --- .golangci.yml | 1 + runner/config_test.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index c84882c6..0b0cd834 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,6 +4,7 @@ run: linters: disable-all: true enable: + - copyloopvar # detects places where loop variables are copied - errcheck # Errcheck is a program for checking for unchecked errors in go programs. - gci # Gci controls Go package import order and makes it always deterministic - goimports # checks that goimports was run diff --git a/runner/config_test.go b/runner/config_test.go index 97a1bd2a..34618de2 100644 --- a/runner/config_test.go +++ b/runner/config_test.go @@ -93,7 +93,6 @@ func TestDefaultPathConfig(t *testing.T) { }} for _, tt := range tests { - tt := tt t.Run(tt.name, func(t *testing.T) { t.Setenv(airWd, tt.path) c, err := defaultPathConfig()