Restore Quality profile for use customized built-in rules
Opened this issue · 0 comments
humpalu commented
Hi there,
Thank you for opening an issue.
Affected Resource(s)
Please list the resources as a list, for example:
- sonarqube_qualityprofile
Expected Behavior
Can not restore Quality profile from an exported backup
Actual Behavior
I have to make customization changes in a Built In Rule ( java:S2699 ).
I created the Quality profile from a Sonar way and I need to change some parameters.
The only way what I can see now to export the whole customized quality profile xml and restore it like that
curl -v POST -u admin:admin "http://localhost:9000/api/qualityprofiles/restore"
--form backup=@test.xml
It would be a much better way to make customized quality profile rules. Since if I understood correctly the following resource is usable only for custom rules with templates but not to configure built-in ones. https://registry.terraform.io/providers/jdamata/sonarqube/latest/docs/resources/sonarqube_rules