You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% phpcs --standard=WordPress --report=verbose /Users/johnleschinski/Sites/awards/src/404.php
ERROR: Referenced sniff "Universal.NamingConventions.NoReservedKeywordParameterNames" does not exist
Run "phpcs --help" for usage information
For anyone who's looking for a fix while not changing their whole setup.
I had to add the phpcsextra path to the installed_paths.
You can find the file to edit by using phpcs --config-show, which in my case was /opt/homebrew/Cellar/php-code-sniffer/3.9.0/bin/CodeSniffer.conf
You can also do it via phpcs --config-set installed_paths YOURPATH/wp-coding-standards/wpcs/Wordpress,YOURPATH/composer/vendor/phpcsstandards/phpcsutils,YOURPATH/composer/vendor/phpcsstandards/phpcsextra
Hitting this error whenever I run phpcs.
PHPCS is installed via Brew.
The text was updated successfully, but these errors were encountered: