1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

Refine golangci-lint settings (#293)

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

View File

@ -1,7 +1,5 @@
run: run:
timeout: 5m timeout: 5m
skip-dirs:
- external
skip-files: skip-files:
- generated.* - generated.*
@ -10,24 +8,16 @@ issues:
exclude-rules: exclude-rules:
- path: _test\.go - path: _test\.go
linters: linters:
- gocyclo
- errcheck - errcheck
- dupl
- gosec - gosec
- goconst
linters: linters:
enable: enable:
- bodyclose - bodyclose
- deadcode
- depguard - depguard
- dogsled
- dupl
- errcheck - errcheck
- exhaustive - exhaustive
- goconst
- gocritic - gocritic
- gocyclo
- gofmt - gofmt
- goimports - goimports
- golint - golint
@ -52,3 +42,5 @@ linters:
- unused - unused
- varcheck - varcheck
- whitespace - whitespace
disable:
- deadcode