Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import rules.csv to sonar?

Tags:

sonarqube

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.

like image 472
iCodeLikeImDrunk Avatar asked Feb 14 '12 20:02

iCodeLikeImDrunk


2 Answers

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
like image 190
iCodeLikeImDrunk Avatar answered Oct 05 '22 12:10

iCodeLikeImDrunk


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.

like image 32
Fabrice - SonarSource Team Avatar answered Oct 05 '22 12:10

Fabrice - SonarSource Team