How to Simplify Your Workflow With Pre-Commit Hooks
Too Long; Didn't Read
Pre-commit is a simple yet powerful tool that can help you catch these issues before they make it into your codebase. It is a git hook script.
Git hook scripts are useful for identifying simple issues before submission to code review. We run our hooks on every commit to automatically point out issues in code such as missing semicolons, trailing whitespace, and debug statements.
Pointing these issues out before code review, allows a code reviewer to focus on the architecture of a change while not wasting time with trivial style nitpicks.