仓库“标准"在哪里?声纳PHP插件编写的PHP CodeSniffer? [英] Where is the repository "Standards" of PHP CodeSniffer with the sonar PHP plugin?

查看:74
本文介绍了仓库“标准"在哪里?声纳PHP插件编写的PHP CodeSniffer?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 SonarQube™我想添加一个新的CodeSniffer规则,如 http中所示://docs.codehaus.org/display/SONAR/PHP+Custom+Coding+Rules .

I want to add a new CodeSniffer rule, like it's indicated in http://docs.codehaus.org/display/SONAR/PHP+Custom+Coding+Rules.

但是,我找不到包含现有规则(PEAR,Squiz,Generic ...)的"Standard"存储库的位置.因此,我不知道必须在哪里添加与在声纳设置中定义的xml规则相对应的新文件.

However, I can't find the location of the "Standard" repository wich contains existing rules (PEAR, Squiz, Generic...). So I don't know where I have to add my new file corresponding to the xml rule I have defined in the sonar settings.

也许我错过了一些东西,但是我查看了PHP插件中的每个文件夹,但没有找到此标准"文件夹.我什至从插件的.jar文件中提取了内容,甚至在代码嗅探器存储库位于其他地方的情况下,甚至查看了磁盘的其余部分.

Maybe I've missed something but I looked in every folder in the PHP plugin and didn't find this "Standard" folder. I even extracted content from the .jar files of the plugin and even looked in the rest of my disk in case of the code sniffer repository were somewhere else.

你能帮我吗?

谢谢.

推荐答案

我来晚了,但是最新的Sonar现在使用自己的规则引擎,因此不再依赖CodeSniffer.对我来说,这意味着我不能再在Sonar上运行我的Symfony2代码标准检查器了,可悲的是...

I'm late but the latest Sonar uses its own Rule Engine now, so no more dependency on CodeSniffer. For me, it means I can no longer run my Symfony2 code standards checker on Sonar, sad...

这篇关于仓库“标准"在哪里?声纳PHP插件编写的PHP CodeSniffer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆