Skip to content

Commit

Permalink
*: use tiup lib to generate errors toml (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
amyangfei authored Oct 20, 2020
1 parent ba2dec2 commit 0947943
Show file tree
Hide file tree
Showing 6 changed files with 1,519 additions and 6 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ lint: tools/bin/revive
@echo "linting"
@tools/bin/revive -formatter friendly -config tools/check/revive.toml $(FILES)

errdoc: tools/bin/errdoc-gen
@echo "generator errors.toml"
./tools/check/check-errdoc.sh

check-copyright:
@echo "check-copyright"
@./scripts/check-copyright.sh
Expand All @@ -128,7 +132,7 @@ tidy:
@echo "go mod tidy"
./tools/check/check-tidy.sh

check: check-copyright fmt lint check-static tidy
check: check-copyright fmt lint check-static tidy errdoc

coverage:
GO111MODULE=off go get github.com/wadey/gocovmerge
Expand All @@ -155,6 +159,10 @@ tools/bin/revive: tools/check/go.mod
cd tools/check; test -e ../bin/revive || \
$(GO) build -o ../bin/revive github.com/mgechev/revive

tools/bin/errdoc-gen: tools/check/go.mod
cd tools/check; test -e ../bin/errdoc-gen || \
$(GO) build -o ../bin/errdoc-gen github.com/pingcap/tiup/components/errdoc/errdoc-gen

tools/bin/golangci-lint: tools/check/go.mod
cd tools/check; test -e ../bin/golangci-lint || \
$(GO) build -o ../bin/golangci-lint github.com/golangci/golangci-lint/cmd/golangci-lint
Expand Down
Loading

0 comments on commit 0947943

Please sign in to comment.