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

Display built-in quality profiles


    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5-M1, 6.5
    • Component/s: Quality Profile
    • Labels:


      Built-in quality profiles are provided by the language plugins (ex: 'Sonar way' in SonarJava).
      When creating an organization, built-in quality profiles must be added to the organization.

      Web Application

      As a quality profile administrator I want to be able to distinguish built-in QP from others.
      The badge "built-in" should be added when a profile name is displayed, for instance in a dropdown.

      Web Services

      The isBuiltIn flag must be returned in the following WS:

      • api/qualityprofiles/search
      • api/qualityprofiles/inheritance
      • api/rules/app


      When upgrading to version 6.5, the existing quality profiles must be renamed with suffix "(outdated copy)" so that they don't conflict with the new built-in profiles that are being created.
      As an optimization only the profiles that have been updated at least once by users must be renamed. Others are simply marked as built-in. As a consequence they will be reset even if they were not up-to-date (created by an old version of analyzers).

      Built-in profiles must always be present and can't be deleted. The old profiles that have been manually deleted by users should be created back.
      Example :

      1. in 5.6 the profile "Sonar way" of SonarJava is created
      2. administrator creates a profile named "foo" and marks it as "default"
      3. administrator deletes the profile "Sonar way"
      4. upgrading to 6.5 should bring the built-in profile "Sonar way" back


          Issue Links



              • Assignee:
                simon.brandhof Simon Brandhof
                teryk.bellahsene Teryk Bellahsene (Inactive)
              • Votes:
                0 Vote for this issue
                3 Start watching this issue


                • Due: