Add a linter for raftutil message type mapping

This commit is contained in:
Mahmood Ali
2020-08-31 07:59:16 -04:00
parent 89a2f4371c
commit 5d5810b16a

View File

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