How to import rules.csv to sonar?

2019-03-27 09:10发布

问题:

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.

回答1:

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


回答2:

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.



标签: sonarqube