Use Git Hooks to Enforce Code Quality Checks Before Commit and Push
Git hooks for code quality: PHPCS before commit, tests before push Code style errors and failing tests are cheapest to fix before they leave the developer’s machine. Git can run a script before each commit and before each push; if the script fails, the commit or the push is stopped. Kept in the repository and…