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