As a developer, it can be helpful to get feedback on if something in your code is not correct before you submit it for code review, and definitely before it gets up to staging. I've written an article that shows a few different git pre-commit hooks that will check your code when you are making a commit. It is geared towards Drupal developers (following Drupal coding standards), but other PHP developers should be able to get some use out of it and modify the hooks where needed to make it useful in their workflow.
Check out the article here.
- Log in to post comments