Add precommit-hook and validate script
Nicer output on validation