From 6207464e9371762c4d419231f09c2d2774c0680b Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Tue, 27 Aug 2024 17:56:02 +0800 Subject: [PATCH] ci: update golangci-lint, remove deprecated linters (#46) --- .github/workflows/golangci-lint.yml | 4 ++-- .golangci.yml | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 69e781f..25c0d90 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -16,7 +16,7 @@ jobs: with: go-version: '1.22.x' - name: golangci-lint - uses: golangci/golangci-lint-action@v5 + uses: golangci/golangci-lint-action@v6 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.57.2 + version: v1.60.3 diff --git a/.golangci.yml b/.golangci.yml index 4a91adc..611abb7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,7 +4,6 @@ linters: disable-all: true enable: - asciicheck - - deadcode - exhaustive - exportloopref - goconst @@ -12,16 +11,13 @@ linters: - gofumpt - goimports - gosimple + - govet - ineffassign - misspell - prealloc - - scopelint - staticcheck - stylecheck - - structcheck - unconvert - unparam - unused - - varcheck - - vet