I’d like to check code committed to my remote git repository with PHP CodeSniffer and reject it if there are any problems code standards. Does anyone have an example how to use it on git remote repository or maybe example how to use it with pre-receive hook? Thanks.
I’d like to check code committed to my remote git repository with PHP CodeSniffer
Share
Maybe this point you in the right direction: (Orginal from: http://www.squatlabs.de/versionierung/arbeiten-git-hooks in German)
You will have to edit the exec line exec(‘php -l… to point to your codesniffer installation.