Reputation: 2415
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?
Upvotes: 10
Views: 37137
Reputation: 3983
You can use the /api/rules web service: http://docs.sonarqube.org/pages/viewpage.action?pageId=2392166
Upvotes: 3
Reputation: 360
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!
Upvotes: 5