SonarQube Custom rules missing when restoring plugin quality profile xml

I have Sonar XML plugin installed and we have our own XML file with predefined rules. When restoring the profile by referencing the xml file, sonar does not import the custom rules and instead shows the "Rule not found:" error. The only imported rules are the three default rules (indent, newline, etc.). Within the restored profile, I can create custom rules from the xpath_rule template and create another profile backup. Then I can delete / restore the profile referencing the new backup xml file generated by sonar and it will import all rules correctly.

However, if I uninstall the xml plugin or do a fresh install of the sonar and try to restore the profile, it again does not import the custom rules and only displays the three default rules despite the backup file the sonar was created on, the backup process ...

I've tested this on 3.7.4, 4.0, 4.1.2, 4.2, 4.5.4 and 5.1 with the same results across the board. When I was tackling this issue, I only saw posts a year ago without permission.

The idea is to have one xml file that all our developers can restore to import the latest rules. Any help would be greatly appreciated.

+3
sonarqube profiles


source to share


No one has answered this question yet

Check out similar questions:

4
Sonarqube 5.4 Standard Rule for C #
2
SonarQube - Can't Restore Profile
2
SonarQube quality profiles result in "We're sorry, but something went wrong."
1
Import configuration files for quality profiles (FindBugs, CheckStyle, PMD) [SonarQube 4.4]
1
Can't install SonarQube quality profile in project
1
Custom rules are not imported when quality profile is restored on another instance of SonarQube
0
Problems with SonarQube plugin schema validation rule
0
Creating quality profile in SonarQube via XML doesn't import all existing rules?
0
Rules created with the plugin are not active in the quality profile
0
SonarQube does not show imported rules in quality profile



All Articles
Loading...
X
Show
Funny
Dev
Pics