mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 01:27:03 -05:00
Refine golangci-lint settings (#293)
This commit is contained in:
parent
807922f883
commit
ed97a250e4
12
.github/linters/.golangci.yml
vendored
12
.github/linters/.golangci.yml
vendored
@ -1,7 +1,5 @@
|
||||
run:
|
||||
timeout: 5m
|
||||
skip-dirs:
|
||||
- external
|
||||
skip-files:
|
||||
- generated.*
|
||||
|
||||
@ -10,24 +8,16 @@ issues:
|
||||
exclude-rules:
|
||||
- path: _test\.go
|
||||
linters:
|
||||
- gocyclo
|
||||
- errcheck
|
||||
- dupl
|
||||
- gosec
|
||||
- goconst
|
||||
|
||||
linters:
|
||||
enable:
|
||||
- bodyclose
|
||||
- deadcode
|
||||
- depguard
|
||||
- dogsled
|
||||
- dupl
|
||||
- errcheck
|
||||
- exhaustive
|
||||
- goconst
|
||||
- gocritic
|
||||
- gocyclo
|
||||
- gofmt
|
||||
- goimports
|
||||
- golint
|
||||
@ -52,3 +42,5 @@ linters:
|
||||
- unused
|
||||
- varcheck
|
||||
- whitespace
|
||||
disable:
|
||||
- deadcode
|
||||
|
Loading…
Reference in New Issue
Block a user