-
-
Notifications
You must be signed in to change notification settings - Fork 488
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: Referenced sniff "Universal" rules does not exist #1923
Comments
It refers to https://github.com/PHPCSStandards/PHPCSExtra/ ruleset. Looks like you are using globally installed WPCS, do you have https://github.com/Dealerdirect/phpcodesniffer-composer-installer installed? The development branch requires utils and extra packages, so it should sort it out. Try to update your globally installed WPCS, and install the dealerdirect package. And be careful what branch you are using. The development branch is currently going through a big cleanup, thanks to the amazing work by @jrfnl 🙂 |
@jarkin13 I concur, as @dingo-d says, please use a stable version of WPCS. That is, either use the
|
For more info about what to expect in WPCS 3.0.0: see #1877 |
@jarkin13 Does this mean this issue can be closed ? |
Bug Description
The updated WordPress-Core has two new rules:
When removed or revert back to a version that does not have
Universal
rules, it works fine. However, upgrading to the most recent code causes this errorMinimal Code Snippet
In vscode here an error I receive:
For bugs with fixers: How was the code fixed? How did you expect the code to be fixed?
Removing Universal rules
Reverting back to an older version of WordPress-Coding-Standards
Environment
The text was updated successfully, but these errors were encountered: