From 2444382161c8f48b324590104d6a7dc747975ec0 Mon Sep 17 00:00:00 2001
From: renovate_bot
 <group_8045_bot_c14af90fcc2e9e0c89e91dd630ad2f8d@noreply.code.fbi.h-da.de>
Date: Thu, 22 Aug 2024 10:36:45 +0000
Subject: [PATCH] [renovate] Update golangci/golangci-lint Docker tag to
 v1.60.2

See merge request danet/quant!193

Co-authored-by: Neil-Jocelyn Schark <neil.schark@h-da.de>
Co-authored-by: Renovate Bot <renovate@danet.fbi.h-da.de>
---
 .gitlab-ci.yml                  | 2 +-
 .golangci.yml                   | 2 +-
 Makefile                        | 2 +-
 goKMS/kms/crypto/crypto_test.go | 2 --
 4 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 99e2ea43..35f660a3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -141,7 +141,7 @@ build-etsi14module-latest:
 # Analyze stage
 lint:
     stage: analyze
-    image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/golangci/golangci-lint:v1.60.1-alpine
+    image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/golangci/golangci-lint:v1.60.2-alpine
     script:
         - apk add --update make
         - echo "machine code.fbi.h-da.de login ${GITLAB_LOGIN} password ${GITLAB_TOKEN}" > ~/.netrc
diff --git a/.golangci.yml b/.golangci.yml
index 7fbcaa15..e7f931b8 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -53,7 +53,7 @@ linters:
         - bidichk
         - durationcheck
         - errorlint
-        - exportloopref
+        - copyloopvar
         - grouper
         - makezero
         - misspell
diff --git a/Makefile b/Makefile
index 3df2e31e..e9240cef 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ GOPATH := $(~/go)
 GOBIN := $(GOSDN_PRG)
 
 GOLANG_VERSION := 1.22
-GOLANGCI_LINT_VERSION=v1.60.1
+GOLANGCI_LINT_VERSION=v1.60.2
 
 GOCMD=CGO_ENABLED=0 go
 GOBUILD=$(GOCMD) build
diff --git a/goKMS/kms/crypto/crypto_test.go b/goKMS/kms/crypto/crypto_test.go
index 6c7afe7f..24dc8bd2 100644
--- a/goKMS/kms/crypto/crypto_test.go
+++ b/goKMS/kms/crypto/crypto_test.go
@@ -46,7 +46,6 @@ func TestCrypto_AES_Encrypt(t *testing.T) {
 	}
 
 	for name, test := range tests {
-		test := test
 		t.Run(name, func(t *testing.T) {
 			t.Parallel()
 
@@ -173,7 +172,6 @@ func TestCrypto_AES_Decrypt(t *testing.T) {
 	}
 
 	for name, test := range tests {
-		test := test
 		t.Run(name, func(t *testing.T) {
 			t.Parallel()
 
-- 
GitLab