linters:
  disable-all: true
  enable:
    - gofumpt
    - govet
    - gci
    - staticcheck
    - paralleltest
    - ineffassign

linters-settings:
  gci:
    custom-order: true
    sections:
      - standard
      - prefix(github.com/sagernet/)
      - default
  staticcheck:
    checks:
      - all
      - -SA1003

run:
  go: "1.23"
  build-tags:
    - with_gvisor
    - with_quic
    - with_dhcp
    - with_wireguard
    - with_ech
    - with_utls
    - with_reality_server
    - with_acme
    - with_clash_api
    - badlinkname

issues:
  exclude-dirs:
    - transport/simple-obfs