mirror of
https://github.com/unpoller/unpoller.git
synced 2026-04-05 08:54:00 -04:00
migrate golangci-lint config
This commit is contained in:
@@ -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$
|
||||||
|
|||||||
Reference in New Issue
Block a user