Created
April 13, 2012 05:34
-
-
Save lgrz/2374082 to your computer and use it in GitHub Desktop.
pre-commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check coding standards | |
exec git diff --cached --name-status | awk '$1 == "A" || $1 == "M" { print $2 }' | xargs /usr/bin/env phpcs --standard=WordPress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment