2025-03-29 09:39:55 +08:00
|
|
|
version: "2"
|
2024-11-16 09:58:21 +08:00
|
|
|
linters:
|
|
|
|
|
enable:
|
|
|
|
|
- asciicheck
|
|
|
|
|
- durationcheck
|
|
|
|
|
- errorlint
|
|
|
|
|
- gosec
|
|
|
|
|
- misspell
|
|
|
|
|
- nakedret
|
|
|
|
|
- nilerr
|
|
|
|
|
- nolintlint
|
|
|
|
|
- perfsprint
|
|
|
|
|
- revive
|
|
|
|
|
- usestdlibvars
|
|
|
|
|
- wastedassign
|
2025-03-29 09:39:55 +08:00
|
|
|
settings:
|
|
|
|
|
gosec:
|
|
|
|
|
includes:
|
|
|
|
|
- G102
|
|
|
|
|
- G106
|
|
|
|
|
- G108
|
|
|
|
|
- G109
|
|
|
|
|
- G111
|
|
|
|
|
- G112
|
|
|
|
|
- G201
|
|
|
|
|
- G203
|
|
|
|
|
perfsprint:
|
|
|
|
|
int-conversion: true
|
|
|
|
|
err-error: true
|
|
|
|
|
errorf: true
|
|
|
|
|
sprintf1: true
|
|
|
|
|
strconcat: true
|
|
|
|
|
exclusions:
|
|
|
|
|
generated: lax
|
|
|
|
|
presets:
|
|
|
|
|
- comments
|
|
|
|
|
- common-false-positives
|
|
|
|
|
- legacy
|
|
|
|
|
- std-error-handling
|
|
|
|
|
paths:
|
|
|
|
|
- third_party$
|
|
|
|
|
- builtin$
|
|
|
|
|
- examples$
|
|
|
|
|
formatters:
|
|
|
|
|
enable:
|
|
|
|
|
- gci
|
|
|
|
|
- gofmt
|
|
|
|
|
- goimports
|
2025-11-28 21:44:27 +08:00
|
|
|
- golines
|
2025-03-29 09:39:55 +08:00
|
|
|
exclusions:
|
|
|
|
|
generated: lax
|
|
|
|
|
paths:
|
|
|
|
|
- third_party$
|
|
|
|
|
- builtin$
|
|
|
|
|
- examples$
|