From 6a48023c61ac59ac684ea5cf97e56ce6e6c19154 Mon Sep 17 00:00:00 2001 From: cpanato Date: Mon, 6 May 2024 13:50:41 +0200 Subject: [PATCH] update golangci-lint Signed-off-by: cpanato --- .github/workflows/style.yaml | 4 +++- .github/workflows/verify.yaml | 3 +-- .golangci.yaml | 34 +++++++++++++++++----------------- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml index 9e57dd1a01..87f06f5406 100644 --- a/.github/workflows/style.yaml +++ b/.github/workflows/style.yaml @@ -57,7 +57,9 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} fail_on_error: true locale: "US" - exclude: ./vendor/* + exclude: | + ./vendor/* + ./.golangci.yaml - uses: get-woke/woke-action-reviewdog@d71fd0115146a01c3181439ce714e21a69d75e31 # v0 if: ${{ always() }} diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index 0077c1a69c..f699b90073 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -32,5 +32,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@38e1018663fa5173f3968ea0777460d3de38f256 # v5.3.0 with: - version: v1.56 - args: --timeout=5m + version: v1.57 diff --git a/.golangci.yaml b/.golangci.yaml index 2b6ae814c0..4c369546fa 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -9,22 +9,22 @@ issues: linters: enable: - - asciicheck - - errorlint - - gofmt - - gosec - - goimports - - importas - - prealloc - - revive - - misspell - - stylecheck - - tparallel - - unconvert - - unparam - - whitespace + - asciicheck + - errorlint + - gofmt + - gosec + - goimports + - importas + - prealloc + - revive + - misspell + - stylecheck + - tparallel + - unconvert + - unparam + - whitespace disable: - - errcheck - - depguard - - deadcode + - errcheck + - depguard + - deadcode