morganestes
7/1/2016 - 8:03 PM

Creates a shortcut to use the WordPress Coding Standards with PHP Code Sniffer

Creates a shortcut to use the WordPress Coding Standards with PHP Code Sniffer

#!/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 "$@"