Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple inheritance for Quality Profiles

Tags:

sonarqube

I see a need for multiple inheritance for Quality Profiles to avoid unnecessary manual work when we upgrade.

For example we would like to inherit all rules from "Sonar Way" and from "Android Lint" and restore the built-in profiles after each upgrade, making sure we are always up to date.

Is this feature planned for?

like image 579
Alix Avatar asked Sep 28 '22 14:09

Alix


2 Answers

This feature is not planned for the moment - even though it has already been discussed a couple of times.

Multiple inheritance offers some good features that we can understand. Your use case is a good example. But it also brings complexity when it comes to decide what to do when you inherit the same rule from 2 quality profiles and this rule is activated differently on those 2 profiles.

like image 137
Fabrice - SonarSource Team Avatar answered Oct 06 '22 02:10

Fabrice - SonarSource Team


There is still a workaround : if you use the same sonar.projectKey but select a different profile at each scan, issues will always be associated to this key so results from different scans will all be aggregated in the same project.

like image 21
Jerec TheSith Avatar answered Oct 06 '22 02:10

Jerec TheSith