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

InputFile::selectLine is incorrect when lines end is \r\n

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4
    • Component/s: Plugin API, Scanner
    • Labels:
      None
    • Estimate:
      Hours
    • Edition:
      Community
    • Production Notes:
      None

      Description

      If a line ends with \r\n using the API InputFile::selectLine will wrongly include the \r. This might cause failure on compute engine side, since line ends are normalized in the scanner report.

        Attachments

          Activity

            People

            Assignee:
            julien.henry Julien Henry
            Reporter:
            julien.henry Julien Henry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: