mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 07:26:24 -05:00
Refine golangci-lint settings (#294)
This commit is contained in:
parent
ed97a250e4
commit
c50fef48a7
12
.github/linters/.golangci.yml
vendored
12
.github/linters/.golangci.yml
vendored
@ -5,28 +5,19 @@ run:
|
||||
|
||||
issues:
|
||||
new: true
|
||||
exclude-rules:
|
||||
- path: _test\.go
|
||||
linters:
|
||||
- errcheck
|
||||
- gosec
|
||||
|
||||
linters:
|
||||
enable:
|
||||
- bodyclose
|
||||
- depguard
|
||||
- errcheck
|
||||
- exhaustive
|
||||
- gocritic
|
||||
- gofmt
|
||||
- goimports
|
||||
- golint
|
||||
- goprintffuncname
|
||||
- gosec
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- interfacer
|
||||
- misspell
|
||||
- nakedret
|
||||
- noctx
|
||||
@ -39,8 +30,9 @@ linters:
|
||||
- typecheck
|
||||
- unconvert
|
||||
- unparam
|
||||
- unused
|
||||
- varcheck
|
||||
- whitespace
|
||||
disable:
|
||||
- deadcode
|
||||
- errcheck
|
||||
- unused
|
||||
|
Loading…
Reference in New Issue
Block a user