mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
Refine linter (#203)
* Linter: remove gochecknoinits plugin * Linter: do NOT run some plugins on test files
This commit is contained in:
parent
782909b9f3
commit
df2d296ffc
17
.github/linters/.golangci.yml
vendored
17
.github/linters/.golangci.yml
vendored
@ -4,6 +4,19 @@ run:
|
|||||||
skip-files:
|
skip-files:
|
||||||
- generated.*
|
- generated.*
|
||||||
|
|
||||||
|
issues:
|
||||||
|
new: true
|
||||||
|
exclude-rules:
|
||||||
|
- path: _test\.go
|
||||||
|
linters:
|
||||||
|
- gocyclo
|
||||||
|
- errcheck
|
||||||
|
- dupl
|
||||||
|
- gosec
|
||||||
|
- goconst
|
||||||
|
- funlen
|
||||||
|
- lll
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- bodyclose
|
- bodyclose
|
||||||
@ -14,7 +27,6 @@ linters:
|
|||||||
- errcheck
|
- errcheck
|
||||||
- exhaustive
|
- exhaustive
|
||||||
- funlen
|
- funlen
|
||||||
- gochecknoinits
|
|
||||||
- goconst
|
- goconst
|
||||||
- gocritic
|
- gocritic
|
||||||
- gocyclo
|
- gocyclo
|
||||||
@ -44,6 +56,3 @@ linters:
|
|||||||
- unused
|
- unused
|
||||||
- varcheck
|
- varcheck
|
||||||
- whitespace
|
- whitespace
|
||||||
|
|
||||||
issues:
|
|
||||||
new: true
|
|
Loading…
Reference in New Issue
Block a user