Last active
March 22, 2019 15:23
-
-
Save MikeNGarrett/19f2a5ebfea261b9fe8f0a41e67e0d84 to your computer and use it in GitHub Desktop.
PHPCS config for multiple installed paths - WordPress, Drupal, PHP Compatibility
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
# Set multiple install paths for phpcs. | |
# This example adds configs for WordPress, Drupal, and PHP compatibility. | |
# NOTE: change `/full/path/to/` to the path to your composer directory. | |
phpcs --config-set installed_paths "/full/path/to/.composer/vendor/wp-coding-standards/wpcs/,/full/path/to/.composer/vendor/drupal/coder/,/full/path/to/composer/vendor/phpcompatibility/php-compatibility/" | |
# Solves the error: PHPCS Response ERROR: Referenced sniff "WordPress-Extra" does not exist. Run "phpcs --help" for usage information |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment