mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-12-19 16:30:07 +08:00
chore: update golangci-lint config file to v2
This commit is contained in:
parent
0b3159bf9b
commit
bd3ce2ba32
@ -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'
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user