From 5c40d948ddce9bd43ab8a16397adca2aadfc6f94 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 24 Aug 2022 21:13:59 +0900 Subject: [PATCH] golangci-lint: remove deprecated linters golangci-lint 1.49 deprecated the `varcheck`, `deadcode`, and `structcheck` linters in favor of the `unused` linter. See golangci/golangci-lint PR 3125 Signed-off-by: Akihiro Suda --- .github/workflows/test.yml | 2 +- .golangci.yml | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e90e4d03e34..41900fc98eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3.2.0 with: - version: v1.48.0 + version: v1.49.0 args: --verbose test-unit: diff --git a/.golangci.yml b/.golangci.yml index 16377077179..e1186f58351 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,7 +5,6 @@ run: linters: disable-all: true enable: - - deadcode - depguard - gofmt - goimports @@ -14,9 +13,7 @@ linters: - misspell - nakedret - prealloc - - structcheck - typecheck - - varcheck # - asciicheck # - bodyclose # - dogsled @@ -61,7 +58,7 @@ linters: # - tparallel # - unconvert # - unparam - # - unused + - unused # - whitespace # - wrapcheck # - wsl