From f4220ebe048c0b0b357c347998b76fb88d42bad9 Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Wed, 12 Jun 2024 16:14:59 +0800 Subject: [PATCH] refactor(ci): delete the useless go.mod file in tools/check folder (#1303) close pingcap/tidb-binlog#1304 --- Makefile | 17 +- tools/check/go.mod | 183 --------- tools/check/go.sum | 964 --------------------------------------------- 3 files changed, 4 insertions(+), 1160 deletions(-) delete mode 100644 tools/check/go.mod delete mode 100644 tools/check/go.sum diff --git a/Makefile b/Makefile index ade733158..e8fd7dc81 100644 --- a/Makefile +++ b/Makefile @@ -78,9 +78,9 @@ fmt: @echo "gofmt (simplify)" @gofmt -s -l -w $(FILES) 2>&1 | $(FAIL_ON_STDOUT) -lint:tools/bin/revive +lint: @echo "linting" - @tools/bin/revive -formatter friendly -config tools/check/revive.toml $(FILES) + $(GO) run github.com/mgechev/revive@v1.2.5 -formatter friendly -config tools/check/revive.toml $(FILES) vet: @echo "vet" @@ -103,18 +103,9 @@ else grep -F '