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

Deprecating rule keys may break users' exclusion settings

    XMLWordPrintable

    Details

    • Edition:
      Community
    • Production Notes:
      None

      Description

      Exclusion settings based on rule keys may no longer work when an analyzer deprecates a rule key.

      Detecting if patterns were intended to apply to old rule keys is not possible in all cases, but we can at least detect the cases where the pattern is exactly equal to a rule key that has been deprecated.

       

      The scanner will detect if a rule pattern used in multicriteria issue exclusion properties equals the deprecated key of one of the active rules.

      We will add a field 'deprecatedKeys' to the active rules returned by 'api/rules/search'. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              duarte.meneses Duarte Meneses
              Reporter:
              jeremy.davis Jeremy Davis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: