PHPStorm and CodeSniffer do not recognize WPCS
I'm trying to use Wordpress Coding Standards in my PHP Storm projects but I keep getting errors.
What I already did:
I put it in composer.json:
require: { squizlabs/php_codesniffer : 3.*, wp-coding-standards/wpcs: 2.3.0 }
I configured CodeSniffer in the QualityTools option
In Inspections - PHP - QualityTools, I put Wordpress in Coding Standard.
The problem:
Even though I've done all this, I'm still not able to evaluate the codes from WPCS. The following error is returned:
ERROR: The file standard=WordPress does not exist.
When I type phpcs -i, WordPress doesn't show up either:
The installed coding standards are MySource, PEAR, PSR1, PSR12, PSR2, Squiz and Zend
System details:
PHPStorm 2020.2.1
Windows 11
Composer global installation
Topic documentation Wordpress
Category Web