From 2e6a8d728ddb52c9a90c852c7a4610dce18e5be0 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 5 Jun 2017 10:49:53 +0800 Subject: [PATCH] Exit with 2 if misspelling found Signed-off-by: Bo-Yi Wu --- Makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Makefile b/Makefile index c63c1e0..3a215c2 100644 --- a/Makefile +++ b/Makefile @@ -94,12 +94,7 @@ misspell-check: @hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ go get -u github.com/client9/misspell/cmd/misspell; \ fi - @diff=$$(misspell $(GOFILES)); \ - if [ -n "$$diff" ]; then \ - echo "Please fix the misspelling:"; \ - echo "$${diff}"; \ - exit 1; \ - fi; + misspell -error $(GOFILES) test: fmt-check for PKG in $(PACKAGES); do go test -v -cover -coverprofile $$GOPATH/src/$$PKG/coverage.txt $$PKG || exit 1; done;