I want to run phpcs tool, but this error is coming,
ERROR: Referenced sniff "PHPCompatibility" does not exist
I ran phpcs -i. That gave me ,
The installed coding standards are PEAR, PSR1, Zend, Squiz, PSR12, PSR2, MySource and PHPCompatibility.
But Always this error is coming, ERROR: Referenced sniff "PHPCompatibility" does not exist. Any reasons ?
According currently PHP Compatibility Coding Standard documentation you need to follow this steps:
composer.jsonfile and add the following lines to:run
composer updateTest with
./vendor/bin/phpcs -p . --standard=PHPCompatibility