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

Fix sourceviewerheader code to keep it DRY

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.5
    • Component/s: Web
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      The SourceViewerHeader was changed at the same time as the `IssueType` enum and its metric/rating map was implemented.

      We should refactor it to use both the enum and its map, instead of duplicating the relationship between the issue's type and the metric key.

      See PR#2241

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jeremy.davis Jeremy Davis
              Reporter:
              jeremy.davis Jeremy Davis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: