From fc27f01654d9097782d80f66681b8c84d5f677a0 Mon Sep 17 00:00:00 2001 From: Lukas Fittl Date: Mon, 15 Aug 2016 23:42:31 -0700 Subject: [PATCH] Ensure "make check" can succeeed if it doesn't find any golint errors. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b5dcc94..b7dcef9 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ help: ## Show help check: ## Check errcheck -ignore="Close|Run|Write" ./... - golint ./... | egrep -v 'underscores|HttpOnly|should have comment|comment on exported|CamelCase|VM|UID' + golint ./... | egrep -v 'underscores|HttpOnly|should have comment|comment on exported|CamelCase|VM|UID' && exit 1 || exit 0 build_test: ## test only buildable GOOS=linux go test ./... | grep -v "exec format error"