Export list of coding rules from Sonarqube

你说的曾经没有我的故事 提交于 2019-12-22 04:06:07

问题


I am trying to find a way to get a list of all Sonarqube Java (or whatever) rules (with keys, description, etc.) and export it as an Excel, csv or xml. I get to list them "dynamically" like this, but I would like to have them all in a file. Does anyone know how to do this?


回答1:


You can use the /api/rules web service: http://docs.sonarqube.org/pages/viewpage.action?pageId=2392166




回答2:


Check this out http://nemo.sonarqube.org/profiles

The initial Profile view just lists all the rules. You can click on the backup link and export the rules to an xml file. This xml file has the rule, the repositoryKey, the key...

I'm not really sure if this is what you want, but hope you find it useful!



来源:https://stackoverflow.com/questions/26905477/export-list-of-coding-rules-from-sonarqube

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!