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:
enable:
- gofumpt
- gci
settings:
gci: gci:
custom-order: true custom-order: true
sections: sections:
- standard - standard
- prefix(github.com/metacubex/mihomo) - prefix(github.com/metacubex/mihomo)
- default - default
staticcheck:
go: '1.19'