Commit d8d85c82 authored by Seth Hoenig's avatar Seth Hoenig
Browse files

spellcheck: add misspell to linter dependencies

You'd think since golangci-lint embeds misspell we could use that,
but it fails to run if it finds no Go source files, which is the
case in our website/ directory that we want to check.
parent 5efa8994
Showing with 2 additions and 0 deletions
+2 -0
...@@ -155,6 +155,7 @@ deps: ## Install build and development dependencies ...@@ -155,6 +155,7 @@ deps: ## Install build and development dependencies
lint-deps: ## Install linter dependencies lint-deps: ## Install linter dependencies
@echo "==> Updating linter dependencies..." @echo "==> Updating linter dependencies..."
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
go get -u github.com/client9/misspell/cmd/misspell
.PHONY: git-hooks .PHONY: git-hooks
git-dir = $(shell git rev-parse --git-dir) git-dir = $(shell git rev-parse --git-dir)
...@@ -167,6 +168,7 @@ $(git-dir)/hooks/%: dev/hooks/% ...@@ -167,6 +168,7 @@ $(git-dir)/hooks/%: dev/hooks/%
check: ## Lint the source code check: ## Lint the source code
@echo "==> Linting source code..." @echo "==> Linting source code..."
@golangci-lint run -j 1 @golangci-lint run -j 1
@echo "==> Spell checking website..." @echo "==> Spell checking website..."
@misspell -error -source=text website/source/ @misspell -error -source=text website/source/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment