10up / 10up-code-review

Custom PHP_CodeSniffer rules to help flag common issues during code review
43 stars 5 forks source link

ERROR: the "10up-Code-Review" coding standard is not installed. #8

Open andreasciamanna opened 7 years ago

andreasciamanna commented 7 years ago

I've followed the direction to install the package globally (composer require + installation with "10up-code-review-install"), then ran phpcs --standard=10up-Code-Review ./, but I get this:

ERROR: the "10up-Code-Review" coding standard is not installed. The installed coding standards are MySource, PEAR, PHPCS, PSR1, PSR2, Squiz, Zend, WordPress, WordPress-Core, WordPress-Docs, WordPress-Extra and WordPress-VIP

Running ~/.composer/vendor/bin/10up-code-review-install I get 10up Coding Standards have been installed!

Am I missing something?

seafarer commented 7 years ago

@sciamannikoo its possible that you have a different PHPCS installed that is taking precedence, such as one installed by PEAR. Run which phpcs to determine if your shell is actually using the globally installed composer version or if its running from somewhere else, like/usr/local/bin.