diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 99e2ea439a09001c9e5b297b1a2415bf31bdbe1a..35f660a3f4312b924a8cd0007e3f3a2e610d6dcd 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 7fbcaa157a1e8f81e777bef54bd023887cc6a10b..e7f931b8765c3e9226a8e4cd7bb23270e0d6b8b2 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 3df2e31e6198171a555ce5b1f5189b960aeb0e39..e9240cef5f3d610e70cf904a35278b406643dc51 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 6c7afe7fab79cc2265d33fe2071d6b5129e5ecbb..24dc8bd21eec0ddf6c3d702de2364f9eb8ffb02a 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()