add: .golangci.yml

This commit is contained in:
2026-02-11 04:21:54 +08:00
parent a3989aeedd
commit ae0ab09b48
10 changed files with 247 additions and 66 deletions

23
.golangci.yml Normal file
View File

@@ -0,0 +1,23 @@
version: "2"
linters:
default: standard
enable:
- staticcheck
- gosec
exclusions:
rules:
- linters:
- gosec
text: "G304:"
- linters:
- errcheck
text: "is not checked"
formatters:
enable:
- gofmt
- gofumpt
- goimports
- gci
- golines
output:
path-mode: abs