-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
PHPCSutils_ Refernce_Error #2379
Comments
As of WordPressCS 3.0.0, Composer is the only supported manner of installation for that reason. Please install using Composer as per the installation instructions in the README. |
Installed with Composer ERROR: Referenced sniff "PHPCSUtils" does not exist
but installing 2.30 the same way works |
Are you using phpcs from the global installation or from your vendor folder? I installed the above code to my computer, and when running The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz, Zend, Modernize, NormalizedArrays, Universal, PHPCSUtils, WordPress, WordPress-Core, WordPress-Docs and WordPress-Extra |
I'm running from vendor Like you I'm seeing PHPCSUtils, when I do a -i yet it fails reverting versions in the exact same env works how can I help debug further? |
OK Resolved To upgrade from 2.3.0 to 3.0.0 you need to extend your installed_paths to include phpcsstandards/phpcsextra and phpcsutils e.g.
|
@alanef No, you should removed that |
Thanks for pointing out the upgrade docs |
Issue:
I have moved to Linux(Ubuntu Debian). Installed the 'phpcs' using composer and it worked but when installed 'wpcs' using composer did not work. So I cloned it from Git.
Now I have set paths and standards are installed but when I use phpcs --standard=WordPress 'path to file', it gives below error.
ERROR: Referenced sniff "Universal.NamingConventions.NoReservedKeywordParameterNames" does not exist.
Actions:
The text was updated successfully, but these errors were encountered: