Check fmt on commit

This commit is contained in:
Luke Kysow
2019-03-30 20:06:40 -05:00
parent 2df59a7f08
commit a2c92e5977

View File

@@ -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