style(be):使用goimport 格式化代码并添加golangci

This commit is contained in:
neverteaser
2021-03-16 14:00:03 +08:00
committed by dushixiang
parent 88b0200095
commit d366cbd00d
40 changed files with 244 additions and 124 deletions

26
.golangci.yml Normal file
View File

@ -0,0 +1,26 @@
linters-settings:
goimports:
local-prefixes: uqingtech.com
linters:
disable-all: true
enable:
- deadcode
- errcheck
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
run:
skip-dirs:
- api/
- module/
skip-files:
- test_ssh.go