2023-12-16 06:25:12 +08:00
|
|
|
run:
|
|
|
|
timeout: 5m
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- asasalint
|
|
|
|
- bidichk
|
|
|
|
- bodyclose
|
|
|
|
- containedctx
|
|
|
|
- gocheckcompilerdirectives
|
2024-08-02 05:52:15 +08:00
|
|
|
- gofmt
|
|
|
|
- gofumpt
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
2024-06-05 02:51:39 +08:00
|
|
|
- intrange
|
2024-08-02 05:52:15 +08:00
|
|
|
- makezero
|
2023-12-16 06:25:12 +08:00
|
|
|
- misspell
|
|
|
|
- nilerr
|
2024-05-22 13:07:57 +08:00
|
|
|
- nolintlint
|
|
|
|
- nosprintfhostport
|
2024-08-02 05:52:15 +08:00
|
|
|
- staticcheck
|
2024-05-22 13:21:04 +08:00
|
|
|
- unconvert
|
2025-05-09 02:42:14 +08:00
|
|
|
- usetesting
|
2024-05-22 13:21:04 +08:00
|
|
|
- wastedassign
|
|
|
|
- whitespace
|
2025-02-25 14:39:44 +08:00
|
|
|
disable:
|
|
|
|
- usestdlibvars
|
|
|
|
- errcheck
|
2024-08-02 05:52:15 +08:00
|
|
|
linters-settings:
|
2024-08-28 08:57:34 +08:00
|
|
|
staticcheck:
|
|
|
|
checks:
|
|
|
|
- all
|
|
|
|
- -SA1019 # omit Deprecated check
|
2024-06-05 02:51:39 +08:00
|
|
|
severity:
|
|
|
|
default-severity: error
|
|
|
|
rules:
|
|
|
|
- linters:
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
|
|
|
- intrange
|
|
|
|
severity: info
|