Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1208155
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 3 years ago.
Improve this questionI'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
Can someone help me?
System details:
PHPStorm 2020.2.1
Windows 11
Composer global installation
本文标签: documentationPHPStorm and CodeSniffer do not recognize WPCS
版权声明:本文标题:documentation - PHPStorm and CodeSniffer do not recognize WPCS 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738760140a2110910.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论