Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-11939

Allow a built-in quality profile to extend another built-in profile

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Plugin API, Quality Profile
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      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)

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                julien.henry Julien Henry
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: