diff --git a/Makefile b/Makefile index 0c3d8ca2cb3e8bcd5c4417c6448ed1955d9727ad..c3a8576771ea127ece6e7580c6446df4587f8a83 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/cmd/soar/soar.go b/cmd/soar/soar.go index 2c67c5e45253cc0e168426056e02f53c9da39e3c..ad4c1173e09b4efe26e3e6327afc6eed9bd07133 100644 --- a/cmd/soar/soar.go +++ b/cmd/soar/soar.go @@ -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) } diff --git a/doc/example/metalinter.json b/doc/example/metalinter.json index aaec90027035b0efd31faa0087ffececff7f746d..60230ec1e8e88224591853ae4354ec227a4bddde 100644 --- a/doc/example/metalinter.json +++ b/doc/example/metalinter.json @@ -13,7 +13,6 @@ "deadcode", "ineffassign", "varcheck", - "gas", "vet" ], "Exclude": [