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

Support colon character in rule keys

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4
    • Component/s: Rules
    • Labels:
      None

      Description

      The resharper plugin declares rule keys with ":", for example "resharper-cs:CSharpWarnings::CS0618".
      That makes the issue-report plugin, and probably other plugins, fail :

      Caused by: java.lang.IllegalArgumentException: Bad format of rule key: resharper
      -cs:CSharpWarnings::CS0618
              at com.google.common.base.Preconditions.checkArgument(Preconditions.java
      :88)
              at org.sonar.api.rule.RuleKey.parse(RuleKey.java:55)
      

      Note that colons must be forbidden in repository keys.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.lancelot Julien Lancelot
              Reporter:
              simon.brandhof Simon Brandhof (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: