mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-29 04:28:22 +00:00
Check fmt on commit
This commit is contained in:
2
Makefile
2
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
|
||||
|
||||
Reference in New Issue
Block a user