aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2020-03-10 04:19:52 +0000
committerFelix Hanley <felix@userspace.com.au>2020-03-10 04:19:52 +0000
commit78cfd8633bdf1f77b40a10929556d30042cb5dff (patch)
tree1f0fca376281352d255ef2bb5f9973d91c3c8215 /Makefile
parent794369aa072d877cae9db28de74bdf94b00ca9e4 (diff)
downloadlexer-78cfd8633bdf1f77b40a10929556d30042cb5dff.tar.gz
lexer-78cfd8633bdf1f77b40a10929556d30042cb5dff.tar.bz2
Add Tokens() returning the internal channelv0.1.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 8243281..f522160 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,13 @@
.PHONY: test
-test: lint ## Run tests with coverage
- go test -short -cover -coverprofile coverage.txt ./...
- go tool cover -html=coverage.txt -o coverage.html
+test: lint
+ go test -short -cover -coverprofile coverage.txt ./... \
+ && go tool cover -html=coverage.txt -o coverage.html
.PHONY: lint
-lint: ## Run the code linter
- revive ./...
+lint:
+ go vet ./...
.PHONY: clean
-clean: ## Clean all test files
+clean:
rm -rf coverage*
-
-.PHONY: help
-help:
- grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) |sort \
- |awk 'BEGIN{FS=":.*?## "};{printf "\033[36m%-30s\033[0m %s\n",$$1,$$2}'