2021-11-30 05:25:01 +08:00
|
|
|
run:
|
2022-09-01 01:11:53 +08:00
|
|
|
timeout: 5m
|
2021-11-30 05:25:01 +08:00
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
2024-03-13 02:48:29 +08:00
|
|
|
- asciicheck
|
|
|
|
- bodyclose
|
|
|
|
- dogsled
|
|
|
|
- durationcheck
|
|
|
|
- errcheck
|
|
|
|
- errorlint
|
|
|
|
- gci
|
|
|
|
- gofmt
|
|
|
|
- gofumpt
|
|
|
|
- goimports
|
|
|
|
- gosec
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- importas
|
|
|
|
- ineffassign
|
|
|
|
- misspell
|
|
|
|
- nakedret
|
|
|
|
- nolintlint
|
|
|
|
- staticcheck
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- unused
|
2021-11-30 05:25:01 +08:00
|
|
|
linters-settings:
|
|
|
|
gosec:
|
|
|
|
# Exclude generated files
|
|
|
|
exclude-generated: true
|
2024-03-13 02:48:29 +08:00
|
|
|
excludes:
|
|
|
|
- G601 # not applicable in go 1.22 anymore
|
2021-11-30 05:25:01 +08:00
|
|
|
gofmt:
|
|
|
|
# simplify code: gofmt with `-s` option, true by default
|
|
|
|
simplify: true
|
2022-09-01 01:11:53 +08:00
|
|
|
|