diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 57e4a84..9cfefff 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -71,7 +71,7 @@ jobs: uses: golangci/golangci-lint-action@v6 if: steps.changed-go-files.outputs.any_changed == 'true' with: - version: v1.59 + version: v1.62 - name: Lint go code (gofumpt) if: steps.changed-go-files.outputs.any_changed == 'true' diff --git a/.golangci.yml b/.golangci.yml index b65edf4..bd85add 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,6 +7,7 @@ linters: - asciicheck - bidichk - bodyclose + - copyloopvar - cyclop - dupl - durationcheck @@ -14,7 +15,6 @@ linters: - errname - errorlint - exhaustive - - exportloopref - forbidigo - funlen - gci diff --git a/Makefile b/Makefile index f2a6ca0..c469717 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ TARGET_FOLDER = target # Docker images DOCKER_IMAGE_GOLANG = golang:1.21-alpine3.17 -DOCKER_IMAGE_GOLANG_CI = golangci/golangci-lint:v1.59 +DOCKER_IMAGE_GOLANG_CI = golangci/golangci-lint:v1.62 # Some colors COLOR_GREEN = $(shell tput -Txterm setaf 2)