style(be):使用goimport 格式化代码并添加golangci
This commit is contained in:
26
.golangci.yml
Normal file
26
.golangci.yml
Normal 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
|
Reference in New Issue
Block a user