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

Distinguish predefined and ad hoc external rules

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4
    • Component/s: Database, Rules
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Description

      External rules can either be defined by some plugins (using RulesDefinition API), or dynamically created during analysis, based on issues in the scanner report.

      It is important to distinguish the two cases, since we might want to purge external rules that are not predefined, when no more issues are associated to them.

      Technical details

      • A new boolean column RULES#IS_AD_HOC will be added. Default value is false.
        • A migration should feed this column to true
        • When registering rules at startup, this flag should be set to false for all rules

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: