-
-
Save morganestes/213f051af146f647f8f389659bc528f1 to your computer and use it in GitHub Desktop.
Creates a shortcut to use the WordPress Coding Standards with PHP Code Sniffer
This file contains hidden or 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
| #!/usr/bin/env bash | |
| COMPOSER_GLOBAL_VENDOR=$(composer global config -n --absolute --ansi -- vendor-dir) | |
| "$COMPOSER_GLOBAL_VENDOR/wp-coding-standards/wpcs/vendor/bin/phpcs" --standard=WordPress --colors "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment