Skip to content

Instantly share code, notes, and snippets.

@lgrz
Created April 13, 2012 05:34
Show Gist options
  • Save lgrz/2374082 to your computer and use it in GitHub Desktop.
Save lgrz/2374082 to your computer and use it in GitHub Desktop.
pre-commit
# 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