YAML: New line characters false positive


(Leonid Lee) #1

Sonar-scanner detects different new line characters.

Environment:

  • SonarQube 7.6
  • YAML analyzer 1.4.0
  • 2 YAML files
  • Windows 2008 R2
  • Sonar-scanner-msbuild 3.3.0.1492 (was 3.2.0.1227)
  • Line ending characters on windows are crlf (\r\n)
  • Line ending characters in git are lf (\n)

Expectations:

  • No problem

Reality:

  • For maintenance reasons documents should use the same new line characters
  • Only one YAML file has one low priority warning

How can I investigate the issue?

Regards, Leonid Lee.


(Adam Gabryś) #2

This plugin is maintained by @sbaudoin. I don’t know if the project’s author reads topics on this forum.

The project page is here: sonar-yaml. You could try to ask this question there.


(Sbaudoin) #3

Hello, thanks indeed, please report an issue on GH.


(Leonid Lee) #4