This is easier to use from a precommit hook, so it can be used to ensure that all formatting is correct before committing code.