Skip to content

Commit

Permalink
golangci-lint: remove deprecated linters
Browse files Browse the repository at this point in the history
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 <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Aug 24, 2022
1 parent 49885ac commit 5c40d94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -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:
Expand Down
5 changes: 1 addition & 4 deletions .golangci.yml
Expand Up @@ -5,7 +5,6 @@ run:
linters:
disable-all: true
enable:
- deadcode
- depguard
- gofmt
- goimports
Expand All @@ -14,9 +13,7 @@ linters:
- misspell
- nakedret
- prealloc
- structcheck
- typecheck
- varcheck
# - asciicheck
# - bodyclose
# - dogsled
Expand Down Expand Up @@ -61,7 +58,7 @@ linters:
# - tparallel
# - unconvert
# - unparam
# - unused
- unused
# - whitespace
# - wrapcheck
# - wsl
Expand Down

0 comments on commit 5c40d94

Please sign in to comment.