Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I load a predefined rule set to a sonar profile

Tags:

java

sonarqube

i have a local sonar server running. i would like to create a new profile with a set of rules that were predefined by someone else. i have the XML file containing all the rules.

is there a way to upload the XML file to the profile and not define the rules manually?

thanks

like image 794
meirrav Avatar asked Sep 05 '25 11:09

meirrav


1 Answers

Make sure you are logged into Sonar.

Click on Quality Profiles in the top navigation bar, then click on "Restore Profile" on the right hand side under the search bar. Make sure you have all the applicable quality plugins that the export is using or the restore will choke.

like image 113
William Helgeson Avatar answered Sep 08 '25 18:09

William Helgeson