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

Do not accept multiple rules with the same key in a repository

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5
    • Component/s: Plugin API, Rules
    • Labels:
      None

      Description

      As discussed, this code snippet shows that due to a Java/FindBugs issue ( SONARJAVA-428 ) , SonarQube is not failing if a rule is declared multiple times in the same rule repository (it only logs a warning). However the code comment also shows that the intent was clearly to fail in such a scenario.

      SONARJAVA-428 being fixed (impacted versions are not even supported anymore), it looks like you can finally implement this failure as it should be.

        Attachments

          Activity

            People

            Assignee:
            simon.brandhof Simon Brandhof (Inactive)
            Reporter:
            nicolas.bontoux Nicolas Bontoux
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: