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

Make it possible to back up and restore customizations of rules

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Rules
    • Labels:
      None

      Description

      SonarQube currently provides the ability to back up and restore quality profiles, which must contain only the activation details of rules within a profile.

      But there is currently no way to back up and restore all the customizations done on the rules themselves:

      • Extended description on any kind of rule
      • Set of tags on a rule (including custom tags)
      • Custom rules created from rule templates

      Example of use case: you want to synchronize your production environment with the pre-production environment on which you create some custom rules.

        Issue Links

          Activity

          Hide
          nicolas.bontoux Nicolas Bontoux added a comment -

          Supporting extended description is being discussed on the Community Forum: https://community.sonarsource.com/t/backup-extended-description-of-rules/2211

          Show
          nicolas.bontoux Nicolas Bontoux added a comment - Supporting extended description is being discussed on the Community Forum: https://community.sonarsource.com/t/backup-extended-description-of-rules/2211
          Hide
          hxr Huan Ruan added a comment -

          Custom java rules created from rule templates do get backed up. E.g. track usage of methods.

          Show
          hxr Huan Ruan added a comment - Custom java rules created from rule templates do get backed up. E.g. track usage of methods.
          Hide
          cas Stefan added a comment - - edited

          Backup works, but restore not (SonarQube 7.4):
          "Custom Rule" from XML template (e.g. "Track breaches of an XPath rule") is included in the backup.xml (see AWfBzGEiCiFP21cn4yu-.xml)
          but "Restore" does not bring them back.

          Show
          cas Stefan added a comment - - edited Backup works, but restore not (SonarQube 7.4): "Custom Rule" from XML template (e.g. "Track breaches of an XPath rule") is included in the backup.xml (see AWfBzGEiCiFP21cn4yu-.xml ) but "Restore" does not bring them back.

            People

            • Assignee:
              Unassigned
              Reporter:
              fabrice.bellingard Fabrice Bellingard
            • Votes:
              34 Vote for this issue
              Watchers:
              29 Start watching this issue

              Dates

              • Created:
                Updated: