From 6e1ee14a6ca04084177cedc5b5da47d918ec3eba Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Wed, 4 Sep 2024 16:54:16 +0200 Subject: [PATCH] ci: fix linter Signed-off-by: Leonardo Di Donato --- .github/workflows/lint.yaml | 6 +++--- .golangci.yml | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 4b60b7f..a6be220 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -42,8 +42,8 @@ jobs: go mod download - name: Lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: - version: latest - args: --timeout 15m0s --verbose --out-${IGNORE_FUTURE_WARNINGS}format tab + version: v1.57.1 + args: --timeout 20m0s --verbose --out-${IGNORE_FUTURE_WARNINGS}format tab diff --git a/.golangci.yml b/.golangci.yml index 1b629ad..27ce844 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,10 +2,10 @@ linters: disable-all: true enable: - bodyclose + - copyloopvar - durationcheck - errcheck - errname - - exportloopref - goconst - gocritic - gocyclo @@ -36,8 +36,6 @@ linters: linters-settings: gofmt: simplify: false - govet: - check-shadowing: true goconst: ignore-tests: true gocyclo: