Dear all,
We are fighting with the option to ignore lines into Javascript which is no supported by SonarQube Scanner
My configuration is:
Azure DevOps CI (Build Pipeline)
Simple project with basic code files (JS, XML & SQL)
SonarQube Community Edition 8.9 (updated last monday)
The Javascript file is used by a specific dedicated engine (Dedicated software) and support some non standard keys like:
#include "XXXXX.YYY"
This option create mistake in Scanner and we are looking to ask the scanner to ignore these lines using //NOSONAR, as explained into your documentation ( Frequently Asked Questions | SonarQube Docs)
But as you can see below the SonarQube scanner does not support it and continue to present error from this line
You’re running into a parsing issue, which means the entire file cannot be parsed (it’s not an issue that can be turned. off with //NOSONAR)
Where is this syntax coming from? Does it have a name? Is it currently a proposed new language feature for Javascript, or something very specific to your engine?
This is a dedicated Solution using it’s own JS parser Engine, and that “#include” key is part of supported option for.
We can’t ignore simply that, and that is why i was looking the //NOSONAR option
Fab