Skip to content

Instantly share code, notes, and snippets.

@antonbabenko
Created April 22, 2012 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonbabenko/2462549 to your computer and use it in GitHub Desktop.
Save antonbabenko/2462549 to your computer and use it in GitHub Desktop.
git pre-commit phpcs hook
# https://github.com/s0enke/git-hooks/tree/master/phpcs-pre-commit/
curl -o .git/hooks/pre-commit https://raw.github.com/s0enke/git-hooks/master/phpcs-pre-commit/pre-commit
chmod +x .git/hooks/pre-commit
Specify Symfony2 as standards in pre-commit.
Also there is Netbeans plugin to verify coding style.
Profit! :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment