1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-06 10:16:40 -05:00
v2fly/.github/linters/.golangci.yml
Loyalsoldier df2d296ffc
Refine linter (#203)
* Linter: remove gochecknoinits plugin
* Linter: do NOT run some plugins on test files
2020-09-18 17:24:01 +08:00

59 lines
834 B
YAML

run:
skip-dirs:
- external
skip-files:
- generated.*
issues:
new: true
exclude-rules:
- path: _test\.go
linters:
- gocyclo
- errcheck
- dupl
- gosec
- goconst
- funlen
- lll
linters:
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- exhaustive
- funlen
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- golint
- gomnd
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- lll
- misspell
- nakedret
- noctx
- nolintlint
- rowserrcheck
- scopelint
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace