Files
sing-tun/.golangci.yml

50 lines
800 B
YAML
Raw Permalink Normal View History

2025-09-22 12:51:12 +08:00
version: "2"
run:
go: "1.25"
2022-07-11 17:15:22 +08:00
linters:
2025-09-22 12:51:12 +08:00
default: none
2022-07-11 17:15:22 +08:00
enable:
- govet
2024-09-14 14:40:11 +08:00
- ineffassign
2025-09-22 12:51:12 +08:00
- paralleltest
- staticcheck
settings:
staticcheck:
checks:
- all
- -S1000
- -S1008
- -S1017
- -ST1003
- -QF1001
- -QF1003
- -QF1008
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofumpt
settings:
gci:
sections:
- standard
- prefix(github.com/sagernet/)
- default
custom-order: true
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$