YAML: New line characters false positive

Sonar-scanner detects different new line characters.


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


  • No problem


  • 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.

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.

1 Like

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