Skip to content

Instantly share code, notes, and snippets.

View claudiu-cristea's full-sized avatar

Claudiu Cristea claudiu-cristea

View GitHub Profile
@claudiu-cristea
claudiu-cristea / README.md
Last active March 12, 2017 16:40 — 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 PHP code base clean by performing a scan with PHP CodeSniffer 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