migrate golangci-lint config
This commit is contained in:
parent
0790aeda22
commit
5122360018
|
|
@ -1,27 +1,30 @@
|
||||||
run:
|
version: "2"
|
||||||
timeout: 3m
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- wsl
|
|
||||||
- nlreturn
|
- nlreturn
|
||||||
- tagalign
|
|
||||||
- revive
|
- revive
|
||||||
|
- tagalign
|
||||||
- testpackage
|
- testpackage
|
||||||
- errcheck
|
- wsl
|
||||||
- gosimple
|
exclusions:
|
||||||
- govet
|
generated: lax
|
||||||
- ineffassign
|
presets:
|
||||||
- staticcheck
|
- comments
|
||||||
- unused
|
- common-false-positives
|
||||||
|
- legacy
|
||||||
output:
|
- std-error-handling
|
||||||
sort-results: true
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
issues:
|
issues:
|
||||||
# disable the default limit so we see everything
|
|
||||||
max-same-issues: 0
|
|
||||||
max-issues-per-linter: 0
|
max-issues-per-linter: 0
|
||||||
|
max-same-issues: 0
|
||||||
# default enable fix where the linter supports
|
fix: true
|
||||||
fix: true
|
formatters:
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue