-
-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phpcs: The "WordPress" coding standard is not installed. Please review your configuration an try again. #2427
Comments
@brothman01 How did you install WordPressCS ? Looks like you didn't answer that question or is "Composer global" your answer ? If so, there must be a version mismatch as the list of installed standards from Can you please run |
yes
|
@jrfnl ^ (I did not tag you) |
@brothman01 Well, if that is what the response is, then you don't have WPCS installed via Composer global and I'm not surprised it doesn't work. I suggest you follow the installation instructions in the README to install it and try again. |
@jrfnl Solution: Thanks |
I have been using phpcs with wpcs for a while so I am confused here.
Bug Description
What did you expect to happen? What actually happened?
I expected it to lint the file.
-->
Minimal Code Snippet
When I execute
phpcs index.php --standard="WordPress"
in a terminal I get the error "ERROR: Referenced sniff "PHPCSUtils" does not exist".When I execute
phpcs -i
in a terminal I can see that WordPress is in the installed list."The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz, Zend, WordPress, WordPress-Core, WordPress-Docs and WordPress-Extra"
The code in the file
The code in the php file does not matter because the command cannot be executed.
The PSR2 standard does work, so I do not think the problem is not with the phpcs installation.
-->
Environment
Tested Against
develop
Branch?develop
branch of WordPressCS. [that is the branch I am using]The text was updated successfully, but these errors were encountered: