How to import rules.csv to sonar?

2019-03-27 09:28发布

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.

标签: sonarqube
2条回答
贼婆χ
2楼-- · 2019-03-27 09:54

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
查看更多
霸刀☆藐视天下
3楼-- · 2019-03-27 10:08

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.

查看更多
登录 后发表回答