From a2c92e5977ff4d100dd034eae8be7f9ddba01c99 Mon Sep 17 00:00:00 2001 From: Luke Kysow <1034429+lkysow@users.noreply.github.com> Date: Sat, 30 Mar 2019 20:06:40 -0500 Subject: [PATCH] Check fmt on commit --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ba847f19c..0db020be9 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,7 @@ check-lint: ## Run linter in CI/CD. If running locally use 'lint' check-fmt: ## Fail if not formatted go get golang.org/x/tools/cmd/goimports - goimports -d $$(find . -type f -name '*.go' ! -path "./vendor/*" ! -path "./server/static/bindata_assetfs.go" ! -path "**/mocks/*") + if [[ $$(goimports -l $$(find . -type f -name '*.go' ! -path "./vendor/*" ! -path "./server/static/bindata_assetfs.go" ! -path "**/mocks/*")) ]]; then exit 1; fi end-to-end-deps: ## Install e2e dependencies ./scripts/e2e-deps.sh