Update golangci-lint configuration

This commit is contained in:
世界 2024-08-18 11:17:01 +08:00
parent 07c678fb85
commit 7fec8d842e
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -6,14 +6,7 @@ linters:
- gci - gci
- staticcheck - staticcheck
- paralleltest - paralleltest
- ineffassign
run:
skip-dirs:
- transport/simple-obfs
- transport/clashssr
- transport/cloudflaretls
- transport/shadowtls/tls
- transport/shadowtls/tls_go119
linters-settings: linters-settings:
gci: gci:
@ -23,4 +16,13 @@ linters-settings:
- prefix(github.com/sagernet/) - prefix(github.com/sagernet/)
- default - default
staticcheck: staticcheck:
go: '1.20' checks:
- all
- -SA1003
run:
go: "1.23"
issues:
exclude-dirs:
- transport/simple-obfs