我正在尝试为 php 代码嗅探器编写自定义 ruleset.xml,但从命令行调用它而不将其放入默认文件夹似乎不起作用。
由于文档似乎另有说明,我想问一下我是否在这里做错了什么
:~/$ phpcs --standard=/home/edo/custom_ruleset.xml source/
===>
ERROR: the "/home/edo/custom_ruleset.xml" coding standard is not installed.
The installed coding standards are PEAR, PHPCS, Zend, Squiz and MySource
如果这不起作用:关于如何将您自己的编码标准与您的源代码一起提供的任何建议?谢谢