10
votes

I have a rules.csv file which I downloaded from another site, how do I import this to my sonar?

I do not have the credentials to get the XML file.

2

2 Answers

22
votes

i figure it out. if you MUST get the rules from another group then do this:

  1. click configuration and choose the quality profile
  2. click the permalink tab
  3. copy the xml of all the rules you wanted, save them accordlying
  4. create a new profile and use those files you saved as the new rules
4
votes

you cannot import a CSV file into Sonar. You can only import XML backups for quality profiles, or XML rulesets files for specific tools (Checkstyle, PMD, ...)

CSV is just a way to export rules, but not to import them.