Skip to content

Instantly share code, notes, and snippets.

@danielpopdan
danielpopdan / README.md
Last active April 13, 2019 07:35 — forked from pfrenssen/README.md
Git hook to check coding standards using PHP CodeSniffer before pushing

About

This is a git pre-push hook intended to help developers keep their Drupal code base clean by performing a scan with Drupal Coder whenever new code is pushed to the repository. When any coding standards violations are present the push is rejected, allowing the developer to fix the code before making it public.

To increase performance only the changed files are checked when new code is