Some of our analyzers allow to develop custom rules using a Java API. A typical use case for customers is to use a quality profile that is Sonar Way + (some of) their own custom rules.
For now this profile has to be manually created in the UI, since there is no way to declare a built-in quality profile extending another profile.
We could update the BuiltInQualityProfile API to allow built in inheritance of another profile (by language + name). We have to be careful about all corner cases:
- what if the inherited profile doesn't exist at server startup
- what if the inherited profile is removed (e.g. plugin uninstalled)
- detect circular dependencies (A inherit B inherit A)