From f270dfadb9af9e81ae4c884a3ea45ca4618a7a05 Mon Sep 17 00:00:00 2001 From: Deepesh Pathak Date: Sun, 2 Sep 2018 01:17:27 +0530 Subject: feat(spell-check): add make command for spell check. * Remove spelling mistakes in the repository * Add travis script to check for typos. * Add command to Makefile to check for typos. * Fixes #71 --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9e9e1cf..29aa58b 100644 --- a/Makefile +++ b/Makefile @@ -102,6 +102,7 @@ lint: $(BIN)/golint $(BIN)/megacheck go vet ./... go list ./... | xargs -L1 golint -set_exit_status megacheck -unused.exported -simple.exit-non-zero ./... + misspell -source=text $(FILES) clean: rm -f $(BIN)/$(NAME) $(PAM_MODULE) $(TOOLS) coverage.out $(COVERAGE_FILES) @@ -162,7 +163,7 @@ uninstall: rm -f $(DESTDIR)/$(NAME) $(PAM_MODULE_DIR)/$(PAM_MODULE) $(PAM_CONFIG_DIR)/$(NAME) #### Tool Building Commands #### -TOOLS := $(addprefix $(BIN)/,protoc golint protoc-gen-go goimports megacheck gocovmerge) +TOOLS := $(addprefix $(BIN)/,protoc golint protoc-gen-go goimports megacheck gocovmerge misspell) .PHONY: tools tools: $(TOOLS) @@ -181,6 +182,9 @@ $(BIN)/megacheck: $(BIN)/gocovmerge: GO111MODULE=off go get github.com/wadey/gocovmerge GO111MODULE=off go build -o $@ github.com/wadey/gocovmerge +$(BIN)/misspell: + GO111MODULE=off go get github.com/client9/misspell + GO111MODULE=off go build -o $@ github.com/client9/misspell/cmd/misspell # Non-go tools downloaded from appropriate repository PROTOC_VERSION := 3.6.1 -- cgit v1.2.3