.golangci.yml 572 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. linters:
  2. disable-all: true
  3. enable:
  4. - gofumpt
  5. - govet
  6. - gci
  7. - staticcheck
  8. - paralleltest
  9. - ineffassign
  10. linters-settings:
  11. gci:
  12. custom-order: true
  13. sections:
  14. - standard
  15. - prefix(github.com/sagernet/)
  16. - default
  17. staticcheck:
  18. checks:
  19. - all
  20. - -SA1003
  21. run:
  22. go: "1.24"
  23. build-tags:
  24. - with_gvisor
  25. - with_quic
  26. - with_dhcp
  27. - with_wireguard
  28. - with_utls
  29. - with_reality_server
  30. - with_acme
  31. - with_clash_api
  32. - with_script
  33. issues:
  34. exclude-dirs:
  35. - transport/simple-obfs