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

Missing highlighting when range contains blank line

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2, 5.3
    • Fix Version/s: 5.6
    • Component/s: None
    • Labels:

      Description

      It seems there is an issue somewhere when processing syntax highlighting on server side (either during CE processing or when api/sources/lines WS decorate source with HTML.

      Sample code:

      Syntax highlighting of the multi-line comment is correct in scanner report:

      But the response from api/sources/lines WS is wrong:

      It's been confirmed that when there is no blank line it is working as expected.

        Attachments

        1. image1.png
          image1.png
          10 kB
        2. image2.png
          image2.png
          11 kB
        3. image3.png
          image3.png
          29 kB

          Activity

            People

            Assignee:
            sebastien.lesaint Sebastien Lesaint
            Reporter:
            sebastien.lesaint Sebastien Lesaint
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: