2025-04-15 11:34:19 +00:00
|
|
|
version: "2"
|
2021-10-24 14:22:01 +00:00
|
|
|
run:
|
|
|
|
issues-exit-code: 1
|
|
|
|
tests: true
|
2019-04-25 07:58:12 +00:00
|
|
|
linters:
|
2021-10-24 14:22:01 +00:00
|
|
|
enable:
|
|
|
|
- nakedret
|
|
|
|
- whitespace
|
2025-04-15 11:34:19 +00:00
|
|
|
disable:
|
|
|
|
- errcheck
|
|
|
|
settings:
|
|
|
|
govet:
|
|
|
|
disable:
|
|
|
|
- fieldalignment
|
|
|
|
enable-all: true
|
|
|
|
exclusions:
|
|
|
|
generated: lax
|
|
|
|
rules:
|
|
|
|
- path: (.+)\.go$
|
|
|
|
text: 'shadow: declaration of "err" shadows declaration at line (\d+)'
|
|
|
|
paths:
|
|
|
|
- third_party$
|
|
|
|
- builtin$
|
|
|
|
- examples$
|
2021-10-24 14:22:01 +00:00
|
|
|
issues:
|
|
|
|
max-issues-per-linter: 0
|
|
|
|
max-same-issues: 0
|
2025-04-15 11:34:19 +00:00
|
|
|
formatters:
|
|
|
|
enable:
|
|
|
|
- goimports
|
|
|
|
exclusions:
|
|
|
|
generated: lax
|
|
|
|
paths:
|
|
|
|
- third_party$
|
|
|
|
- builtin$
|
|
|
|
- examples$
|