From d4e021dd0cdeb2f500254bc2fdcef04b357467ce Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 5 Jun 2017 11:50:00 +0800 Subject: [PATCH] feat: add misspell fix command. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 3a215c2..838f022 100644 --- a/Makefile +++ b/Makefile @@ -96,6 +96,13 @@ misspell-check: fi misspell -error $(GOFILES) +.PHONY: misspell +misspell: + @hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ + go get -u github.com/client9/misspell/cmd/misspell; \ + fi + misspell -w $(GOFILES) + test: fmt-check for PKG in $(PACKAGES); do go test -v -cover -coverprofile $$GOPATH/src/$$PKG/coverage.txt $$PKG || exit 1; done;