2022-06-30 21:27:56 +08:00
|
|
|
linters:
|
2022-07-10 22:00:28 +08:00
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
- gofumpt
|
|
|
|
- govet
|
2023-02-09 21:01:48 +08:00
|
|
|
- gci
|
2022-07-10 22:00:28 +08:00
|
|
|
- staticcheck
|
|
|
|
- paralleltest
|
2024-08-18 11:17:01 +08:00
|
|
|
- ineffassign
|
2022-09-03 23:21:35 +08:00
|
|
|
|
2022-06-30 21:27:56 +08:00
|
|
|
linters-settings:
|
2023-02-09 21:01:48 +08:00
|
|
|
gci:
|
|
|
|
custom-order: true
|
|
|
|
sections:
|
|
|
|
- standard
|
|
|
|
- prefix(github.com/sagernet/)
|
|
|
|
- default
|
2022-07-10 22:00:28 +08:00
|
|
|
staticcheck:
|
2024-08-18 11:17:01 +08:00
|
|
|
checks:
|
|
|
|
- all
|
|
|
|
- -SA1003
|
|
|
|
|
|
|
|
run:
|
|
|
|
go: "1.23"
|
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-dirs:
|
|
|
|
- transport/simple-obfs
|