Since switching from SVN to Git, we lost the ability to enforce our coding standards through a pre-commit hook on the subversion server.
pre-commit
With Git, you only
I used this hook: http://criticallog.thornet.net/2011/06/02/running-php-linter-before-pushing-changes-to-a-git-repository/
and modified it to also test code with phpcs.
Might contain some bugs and I have hardcoded drupal code standard but it works! http://pastebin.com/fEmN519B