An issue is detected in the XML file of my project during scanning, and I believe it is a false positive.
//NOSONAR comments do the work in Java.
I have tried using the <!-- NOSONAR -->
comment in the XML file, but it did not ignore the issue as expected.
PS:
I used it as <!-- NOSONAR -->
at the end of the line as this is the way to add comments in XML file.
I have two questions:
- Can
<!-- NOSONAR -->
be used to ignore issues in XML files? If yes, how? - What other solutions or alternatives are available to address false positives in XML files?