Search code examples
exportprofilesonarquberule

sonar quality profile rule export with descrption


How to download a sonar quality profile along with description.

/profiles/export?language=java&name=xyz_profile

Gives me xml dump with repositoryKey, key, priority elements of each rule. What shud i do to get description/rule descriptiin text?

Pls help.


Solution

  • You should get what you want with the /api/rules web service and with help of the "profile" parameter : http://docs.codehaus.org/pages/viewpage.action?pageId=229743284