squizlabs / PHP_CodeSniffer

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
BSD 3-Clause "New" or "Revised" License
10.66k stars 1.48k forks source link

Code Sniffer works on one project but fails on others #3948

Closed jcummings83 closed 5 months ago

jcummings83 commented 5 months ago

I am fairly new to using PHPCS so hoping this is an easy fix or if someone can point me in the right direction. I have it installed globally and I have one local wordpress site where it runs as it should, but I just setup 2 new local sites and when I open any php files from them, it fails and I get the following message:

Error in plugin "gulp-phpcs" Message: Execution of Code Sniffer Failed Details: stdout: ERROR: Referenced sniff "PHPCSUtils" does not exist

When I run phpcs -i it displays "The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz, Zend, WordPress, WordPress-Core, WordPress-Docs, WordPress-Extra and PHPCompatibility"

Is there something I am missing?