From b78a63befb72d4459c67344a75da32082ca8d60e Mon Sep 17 00:00:00 2001 From: Vishal Nayak Date: Thu, 19 Oct 2017 12:55:39 -0400 Subject: [PATCH] Added spellcheck target to makefile (#3398) * Added spellcheck target to makefile * address review comments --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 26db0be5b9..68c9543eec 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,8 @@ TEST?=$$(go list ./... | grep -v /vendor/) VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods -nilfunc -printf -rangeloops -shift -structtags -unsafeptr EXTERNAL_TOOLS=\ github.com/mitchellh/gox \ - github.com/kardianos/govendor + github.com/kardianos/govendor \ + github.com/client9/misspell/cmd/misspell BUILD_TAGS?=vault GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor) @@ -83,6 +84,10 @@ fmtcheck: fmt: gofmt -w $(GOFMT_FILES) +spellcheck: + @echo "==> Spell checking website..." + @misspell -error -source=text website/source + mysql-database-plugin: @CGO_ENABLED=0 go build -o bin/mysql-database-plugin ./plugins/database/mysql/mysql-database-plugin