Uploaded image for project: 'SonarLint For IntelliJ'
  1. SonarLint For IntelliJ
  2. SLI-571

Bad rendering of links in rule description when configuring rules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2
    • Component/s: None
    • Labels:
      None

      Description

      In some cases the rule description displayed in the rules configuration panel displays broken links (see href at bottom right):

      It's the case when the link has a line return in the middle, as for example with rule S5981:

      <a*\n*
      href="https://github.com/[...]">C++ Core Guidelines - Type safety profile - Type.2</a>

      It happens that com.intellij.util.ui.UIUtil#getHtmlBody(java.lang.String) replaces \n with <br> tags, breaking the link

      We face the issue only in the rule configuration panel, not in the rule description shown in the tool window.

      We could probably try to use the same component to render the rule description in both cases

        Attachments

          Activity

            People

            Assignee:
            julien.henry Julien Henry
            Reporter:
            damien.urruty Damien Urruty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: