Alix
Alix

Reputation: 2837

Multiple inheritance for Quality Profiles

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?

Upvotes: 5

Views: 778

Answers (2)

Jerec TheSith
Jerec TheSith

Reputation: 1942

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.

Upvotes: 1

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.

Upvotes: 3

Related Questions