fix: remove deprecated linter

This commit is contained in:
carr0t2 2022-10-24 01:12:00 +08:00
parent 0f17a1d7b6
commit b8759530e9
1 changed files with 2 additions and 6 deletions

View File

@ -8,7 +8,6 @@ run:
linters: linters:
enable: enable:
- 'asciicheck' - 'asciicheck'
- 'deadcode'
- 'depguard' - 'depguard'
- 'dogsled' - 'dogsled'
- 'errorlint' - 'errorlint'
@ -29,7 +28,8 @@ linters:
- 'revive' - 'revive'
- 'typecheck' - 'typecheck'
- 'unconvert' - 'unconvert'
- 'varcheck' # The linter 'varcheck' 'deadcode' 'structcheck' is deprecated (since v1.49.0), use 'unused' instead.
- 'unused'
- 'whitespace' - 'whitespace'
disable: disable:
# unsupported lint with golang 1.18+ ref: https://github.com/golangci/golangci-lint/issues/2649 # unsupported lint with golang 1.18+ ref: https://github.com/golangci/golangci-lint/issues/2649
@ -38,9 +38,7 @@ linters:
- 'noctx' - 'noctx'
- 'sqlclosecheck' - 'sqlclosecheck'
- 'staticcheck' - 'staticcheck'
- 'structcheck'
- 'stylecheck' - 'stylecheck'
- 'unused'
- 'errcheck' - 'errcheck'
issues: issues:
@ -62,8 +60,6 @@ issues:
exclude-rules: exclude-rules:
- path: internal/browser/browser\.go - path: internal/browser/browser\.go
linters: linters:
- 'deadcode'
- 'varcheck'
- 'unused' - 'unused'
max-issues-per-linter: 0 max-issues-per-linter: 0
max-same-issues: 0 max-same-issues: 0