Created
November 13, 2014 13:40
-
-
Save Vinai/21d58d4d04c39aee5613 to your computer and use it in GitHub Desktop.
Example for automating phpcs with a custom coding standard. Run this in a magento project dir (for example).
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
#/bin/bash | |
CODING_STANDARD_DIR="../Coding-Standards/Ecg" | |
[ ! -e "$CODING_STANDARD_DIR" ] && git clone https://github.com/magento-ecg/coding-standard.git "$CODING_STANDARD_DIR" | |
phpcs --standard="$CODING_STANDARD_DIR/ruleset.xml" "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment