From 2507cf5bd00750577c2b0033ec0e0b3e0e22a538 Mon Sep 17 00:00:00 2001 From: Carlos Salas Date: Thu, 2 Jan 2025 15:54:09 +0100 Subject: [PATCH] chore: bump golangci and remove deprecated linters Signed-off-by: Carlos Salas --- .github/workflows/golangci-lint.yml | 2 +- .golangci.yml | 17 ++--------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index bb00b8c9a..5cfa5131a 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -27,7 +27,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6.1.1 with: - version: v1.56.2 + version: v1.63.2 working-directory: ${{matrix.working-directory}} args: --timeout=5m0s skip-cache: true diff --git a/.golangci.yml b/.golangci.yml index c287c43ec..e09685c67 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,10 +1,10 @@ # Options for analysis running. run: go: "1.22" - skip-files: - - ".*_test\\.go$" allow-parallel-runners: true issues: + exclude-files: + - ".*_test\\.go$" include: - EXC0012 - EXC0014 @@ -137,11 +137,8 @@ linters: - tagliatelle - exhaustruct - exhaustive - - exhaustivestruct - - maligned - funlen - wrapcheck - - goerr113 - paralleltest - varnamelen - cyclop @@ -150,20 +147,10 @@ linters: - nonamedreturns - gocritic - nlreturn - - gomnd - ireturn - depguard - containedctx - godox - # The following are all deprecated linters - - deadcode - - ifshort - - varcheck - - scopelint - - interfacer - - structcheck - - golint - - nosnakecase # Disabled because of generics - rowserrcheck - sqlclosecheck