From d30c0c0e8c2234667b40f0be8094b38df00fd33d Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Fri, 4 Dec 2020 09:57:41 -0500 Subject: [PATCH] Only check spelling in Go and HTML files (#1269) * Only check spelling in Go and HTML files This is required because the incoming language files fail spellcheck. * Markdown too --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5bb9043ba..43b83e67a 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ VETTERS = "asmdecl,assign,atomic,bools,buildtag,cgocall,composites,copylocks,err GOFMT_FILES = $(shell go list -f '{{.Dir}}' ./...) HTML_FILES = $(shell find . -name \*.html) GO_FILES = $(shell find . -name \*.go) +MD_FILES = $(shell find . -name \*.md) fmtcheck: @command -v goimports > /dev/null 2>&1 || go get golang.org/x/tools/cmd/goimports @@ -50,7 +51,7 @@ copyrightcheck: spellcheck: @command -v misspell > /dev/null 2>&1 || go get github.com/client9/misspell/cmd/misspell - @misspell -locale="US" -error -source="text" **/* + @misspell -locale="US" -error -source="text" $(GO_FILES) $(HTML_FILES) $(MD_FILES) .PHONY: spellcheck staticcheck: