feat: add misspell fix command.

This commit is contained in:
Bo-Yi Wu 2017-06-05 11:50:00 +08:00
parent 5951f32711
commit d4e021dd0c
No known key found for this signature in database
GPG Key ID: 0F84B2110C500B1F
1 changed files with 7 additions and 0 deletions

View File

@ -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;