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()