Fix: format & lint (#1759)

* Fix: gci command for formatting code
* Chore: format code
* Fix: replace golint with revive
This commit is contained in:
Loyalsoldier
2022-05-01 01:17:49 +08:00
committed by GitHub
parent fcc57156fc
commit 6dce0d98c1
4 changed files with 14 additions and 10 deletions
+7 -5
View File
@@ -2,14 +2,12 @@ run:
timeout: 5m
skip-files:
- generated.*
issues:
new: true
exclude-rules:
- linters:
- staticcheck
- staticcheck
text: "SA1019:"
linters:
enable:
- asciicheck
@@ -19,13 +17,13 @@ linters:
- gofmt
- gofumpt
- goimports
- golint
- goprintffuncname
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- revive
- rowserrcheck
- staticcheck
- structcheck
@@ -39,7 +37,11 @@ linters:
- deadcode
- errcheck
- unused
linters-settings:
goimports:
local-prefixes: github.com/v2fly/v2ray-core
revive:
rules:
- name: blank-imports
severity: warning
disabled: true