Using SonarQube, we wish to create a new quality profile from an existing profile, but deactivate a couple of the rules. The GUI allows us to modify the severity of inherited rules, but not deactivate the rules.
Is there any way to achieve this?
A workaround is to copy the profile and modify it, but we wish to retain the link to the original profile so that our inherited profile picks up any changes that are made to the original profile.
Built-in and default profiles SonarQube comes with a built-in quality profile defined for each supported language, called the Sonar way profile (it is marked with the BUILT-IN tag in the interface).
Copy a profile from one SonarQube instance to another? Use the Back up feature on the source instance to export the profile to an XML file. Use the Restore Profile feature on the target instance to import the file.
Independent of the used profile, you can always ignore rules on the project level: Go to the project's Administration --> General Settings menu. From there, go to Analysis Scope --> Issues.
Add the rule(s) you want to ignore to the Ignore Issues on Multiple Criteria list with **
as File Path Pattern.
It is not possible to deactivate a rule inherited from a parent quality profile.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With