.golangci.yml 998 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. version: "2"
  2. run:
  3. go: "1.25"
  4. build-tags:
  5. - with_gvisor
  6. - with_quic
  7. - with_dhcp
  8. - with_wireguard
  9. - with_utls
  10. - with_acme
  11. - with_clash_api
  12. linters:
  13. default: none
  14. enable:
  15. - govet
  16. - ineffassign
  17. - paralleltest
  18. - staticcheck
  19. settings:
  20. staticcheck:
  21. checks:
  22. - all
  23. - -S1000
  24. - -S1008
  25. - -S1017
  26. - -ST1003
  27. - -QF1001
  28. - -QF1003
  29. - -QF1008
  30. exclusions:
  31. generated: lax
  32. presets:
  33. - comments
  34. - common-false-positives
  35. - legacy
  36. - std-error-handling
  37. paths:
  38. - transport/simple-obfs
  39. - third_party$
  40. - builtin$
  41. - examples$
  42. formatters:
  43. enable:
  44. - gci
  45. - gofumpt
  46. settings:
  47. gci:
  48. sections:
  49. - standard
  50. - prefix(github.com/sagernet/)
  51. - default
  52. custom-order: true
  53. exclusions:
  54. generated: lax
  55. paths:
  56. - transport/simple-obfs
  57. - third_party$
  58. - builtin$
  59. - examples$