wttech / AEM-Rules-for-SonarQube

SonarQube plugin with set of rules detecting possible bugs and bad smells specific for AEM development.
Apache License 2.0
112 stars 51 forks source link

Failure to recognise NOSONAR comments in HTL #230

Open toniedzwiedz opened 2 years ago

toniedzwiedz commented 2 years ago

Originally mentioned by @boobootoo2 and @bhartm3 in comments under https://github.com/wttech/AEM-Rules-for-SonarQube/issues/78

The comment below does not suppress the Sonar Error. I am able to suppress HTML issues however.

<!—/* //NOSONAR */—>
toniedzwiedz commented 2 years ago

This appears to work in the HTML plugin, but not in the HTL rules in the AEM Rules Plugin. https://stackoverflow.com/questions/58682506/how-can-i-mark-this-line-in-html-file-to-be-ignored-by-sonar-rules