Sonarqube listing issues in same line multiple times

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) : 8.4.2
  • what are you trying to achieve : Analyze a git repo.
  • what have you tried so far to achieve this : I have executed the analysis like we do for regular projects.

Issue:
Sonarqube is displaying multiple issues for same lines of code. The lines have multiple html tags. Is it expected.
Screenshots attached.

  1. Git repo screenshot of file

  1. Screenshot from Sonarqube.

Hi Vishnu,

Yes, this is expected, as you have 3 different “a” HTLM elements (links) in the same line of code, and 3 distinct issues which happen to be the same (but need to be fixed separately). To fix all the three issues, you will need to add the “rel” attribute to each of the three “a” elements.

Makes sense?

Best regards,
Daniel

Thanks @Daniel_Meppiel .

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.