提交 e3496fd7 编写于 作者: martianzhang's avatar martianzhang
上级 9b737116
......@@ -162,8 +162,8 @@ vendor: vitess pingcap-parser
lint: build
@echo "$(CGREEN)Run linter check ...$(CEND)"
CGO_ENABLED=0 GOMODULE111=off retool do gometalinter.v2 -j 1 --config doc/example/metalinter.json ./...
retool do revive -formatter friendly --exclude vendor/... -config doc/example/revive.toml ./...
retool do golangci-lint --tests=false run
GOMODULE111=off retool do revive -formatter friendly --exclude vendor/... -config doc/example/revive.toml ./...
GOMODULE111=off retool do golangci-lint --tests=false run
@echo "gometalinter check your code is pretty good"
.PHONY: release
......
......@@ -262,9 +262,7 @@ func main() {
}
default:
// vEnv.VEnvBuild 阶段给出的 ERROR 是 ERR.001
if _, ok := mysqlSuggest["ERR.000"]; ok {
delete(mysqlSuggest, "ERR.000")
}
delete(mysqlSuggest, "ERR.000")
mysqlSuggest["ERR.001"] = advisor.RuleMySQLError("ERR.001", vEnv.Error)
common.Log.Error("BuildVirtualEnv DDL Execute Error : %v", vEnv.Error)
}
......
......@@ -13,7 +13,6 @@
"deadcode",
"ineffassign",
"varcheck",
"gas",
"vet"
],
"Exclude": [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册