cnescatlab / sonar-hadolint-plugin

sonar-hadolint-plugin is a SonarQube plugin used to integrate Hadolint results
GNU General Public License v3.0
12 stars 0 forks source link

Highlighting does not work properly for multiline strings #3

Closed Sancretor closed 4 years ago

Sancretor commented 4 years ago

Describe the bug

The Strings highlighting is only working if the string begins and ends on the same line.

To reproduce

  1. Have a Dockerfile with a string (with quotes ") that starts in one line, and end in the next one.
  2. Analyze your project with SonarScanner or else
  3. On SonarQube web interface, go to your project "code" menu
  4. Open your Dockerfile in this interface, and you'll see that in the second line, the highlighting is inverted

Expected behavior

Strings should be correctly highlighted whether they are written on multiple line or not.

Screenshots & log

None.

User environment

Please complete the following information.

  • OS: Debian 10
  • SonarQube version : 7.9.3
  • Java version: 1.11
  • Hadolint version: 1.18.0
  • Plugin version: dev

Additional context

None.