mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Add a linter for raftutil message type mapping
This commit is contained in:
@@ -222,6 +222,10 @@ check: ## Lint the source code
|
||||
git --no-pager diff go.sum; \
|
||||
exit 1; fi
|
||||
|
||||
@echo "==> Check raft util msg type mapping are in-sync..."
|
||||
@go generate ./helper/raftutil/
|
||||
@if (git status -s ./helper/raftutil| grep -q .go); then echo "raftutil helper message type mapping is out of sync. Run go generate ./... and push."; exit 1; fi
|
||||
|
||||
.PHONY: checkscripts
|
||||
checkscripts: ## Lint shell scripts
|
||||
@echo "==> Linting scripts..."
|
||||
|
||||
Reference in New Issue
Block a user