|
|
|
@ -1,20 +1,25 @@
|
|
|
|
|
version: "2"
|
|
|
|
|
formatters:
|
|
|
|
|
enable:
|
|
|
|
|
- gci
|
|
|
|
|
- gofumpt
|
|
|
|
|
settings:
|
|
|
|
|
gci:
|
|
|
|
|
sections:
|
|
|
|
|
- standard
|
|
|
|
|
- default
|
|
|
|
|
- prefix(github.com/shirou)
|
|
|
|
|
issues:
|
|
|
|
|
max-same-issues: 0
|
|
|
|
|
exclude-rules: []
|
|
|
|
|
linters:
|
|
|
|
|
enable:
|
|
|
|
|
- asciicheck
|
|
|
|
|
- contextcheck
|
|
|
|
|
- durationcheck
|
|
|
|
|
- errorlint
|
|
|
|
|
- gci
|
|
|
|
|
- gocritic
|
|
|
|
|
- gofmt
|
|
|
|
|
- gofumpt
|
|
|
|
|
- goimports
|
|
|
|
|
- gomodguard
|
|
|
|
|
- gosec
|
|
|
|
|
- gosimple
|
|
|
|
|
- importas
|
|
|
|
|
- misspell
|
|
|
|
|
- nakedret
|
|
|
|
@ -24,7 +29,6 @@ linters:
|
|
|
|
|
- revive
|
|
|
|
|
- testifylint
|
|
|
|
|
- thelper
|
|
|
|
|
- typecheck
|
|
|
|
|
- unparam
|
|
|
|
|
- usetesting
|
|
|
|
|
disable:
|
|
|
|
@ -33,12 +37,7 @@ linters:
|
|
|
|
|
- ineffassign
|
|
|
|
|
- staticcheck
|
|
|
|
|
- unused
|
|
|
|
|
linters-settings:
|
|
|
|
|
gci:
|
|
|
|
|
sections:
|
|
|
|
|
- standard
|
|
|
|
|
- default
|
|
|
|
|
- prefix(github.com/shirou)
|
|
|
|
|
settings:
|
|
|
|
|
gocritic:
|
|
|
|
|
disabled-checks:
|
|
|
|
|
- captLocal
|
|
|
|
@ -111,5 +110,15 @@ linters-settings:
|
|
|
|
|
usetesting:
|
|
|
|
|
os-create-temp: false
|
|
|
|
|
os-mkdir-temp: false
|
|
|
|
|
exclusions:
|
|
|
|
|
generated: lax
|
|
|
|
|
presets:
|
|
|
|
|
- comments
|
|
|
|
|
- common-false-positives
|
|
|
|
|
- legacy
|
|
|
|
|
- std-error-handling
|
|
|
|
|
warn-unused: true
|
|
|
|
|
output:
|
|
|
|
|
show-stats: false
|
|
|
|
|
run:
|
|
|
|
|
timeout: 5m
|
|
|
|
|