From 510b0cbfee43db617189c4a1670d334ccf602240 Mon Sep 17 00:00:00 2001 From: Oliver Steele Date: Wed, 19 Jul 2017 21:32:45 -0400 Subject: [PATCH] make lint enables gofmt --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 950af97..ded6ac3 100644 --- a/Makefile +++ b/Makefile @@ -14,10 +14,10 @@ clean: ## remove binary files rm -f ${LIB} ${CMD} deps: ## list dependencies - go list -f '{{join .Deps "\n"}}' ./... | grep -v `go list -f '{{.ImportPath}}'` | grep '\.' | sort | uniq + @go list -f '{{join .Deps "\n"}}' ./... | grep -v `go list -f '{{.ImportPath}}'` | grep '\.' | sort | uniq imports: ## list imports - go list -f '{{join .Imports "\n"}}' ./... | grep -v `go list -f '{{.ImportPath}}'` | grep '\.' | sort | uniq + @go list -f '{{join .Imports "\n"}}' ./... | grep -v `go list -f '{{.ImportPath}}'` | grep '\.' | sort | uniq generate: go generate ./... @@ -30,7 +30,7 @@ setup: ## install dependencies and development tools gometalinter --install lint: ## lint the package - gometalinter ./... --deadline=5m --exclude expressions/scanner.go --exclude y.go --exclude '.*_string.go' --disable=gotype --disable=interfacer + gometalinter ./... --deadline=5m --include=gofmt --exclude expressions/scanner.go --exclude y.go --exclude '.*_string.go' --disable=gotype --disable=interfacer @echo lint passed test: ## test the package