chore: update golangci-lint config file to v2

This commit is contained in:
DNEGEL3125 2025-11-12 10:01:15 +08:00
parent 0b3159bf9b
commit bd3ce2ba32

View File

@ -1,17 +1,18 @@
version: "2"
linters: linters:
disable-all: true default: none
enable: enable:
- gofumpt
- staticcheck - staticcheck
- govet - govet
- gci
linters-settings: formatters:
gci: enable:
custom-order: true - gofumpt
sections: - gci
- standard settings:
- prefix(github.com/metacubex/mihomo) gci:
- default custom-order: true
staticcheck: sections:
go: '1.19' - standard
- prefix(github.com/metacubex/mihomo)
- default