| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- version: "2"
- linters:
- enable:
- - asciicheck
- - bodyclose
- - depguard
- - gocritic
- - goprintffuncname
- - misspell
- - nakedret
- - revive
- - rowserrcheck
- - staticcheck
- - unconvert
- - unparam
- - whitespace
- disable:
- - errcheck
- - unused
- settings:
- depguard:
- rules:
- Main:
- deny:
- - pkg: github.com/pkg/errors
- desc: Should be replaced by standard lib errors package
- revive:
- rules:
- - name: blank-imports
- severity: warning
- disabled: true
- exclusions:
- generated: lax
- presets:
- - comments
- - common-false-positives
- - legacy
- - std-error-handling
- rules:
- - linters:
- - staticcheck
- text: 'SA1019:'
- - linters:
- - staticcheck
- text: 'ST1016:'
- paths:
- - generated.*
- - .pb.go
- - third_party$
- - builtin$
- - examples$
- issues:
- new: true
- formatters:
- enable:
- - gofmt
- - gofumpt
- - goimports
- settings:
- goimports:
- local-prefixes:
- - github.com/v2fly/v2ray-core
- exclusions:
- generated: lax
- paths:
- - generated.*
- - .pb.go
- - third_party$
- - builtin$
- - examples$
|