1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-20 00:07:06 -05:00

Refine golangci-lint settings (#294)

This commit is contained in:
Loyalsoldier 2020-10-10 00:19:09 +08:00 committed by GitHub
parent ed97a250e4
commit c50fef48a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,28 +5,19 @@ run:
issues: issues:
new: true new: true
exclude-rules:
- path: _test\.go
linters:
- errcheck
- gosec
linters: linters:
enable: enable:
- bodyclose - bodyclose
- depguard - depguard
- errcheck
- exhaustive
- gocritic - gocritic
- gofmt - gofmt
- goimports - goimports
- golint - golint
- goprintffuncname - goprintffuncname
- gosec
- gosimple - gosimple
- govet - govet
- ineffassign - ineffassign
- interfacer
- misspell - misspell
- nakedret - nakedret
- noctx - noctx
@ -39,8 +30,9 @@ linters:
- typecheck - typecheck
- unconvert - unconvert
- unparam - unparam
- unused
- varcheck - varcheck
- whitespace - whitespace
disable: disable:
- deadcode - deadcode
- errcheck
- unused