AEM-Rules-for-SonarQube icon indicating copy to clipboard operation
AEM-Rules-for-SonarQube copied to clipboard

Failure to recognise NOSONAR comments in HTL

Open toniedzwiedz opened this issue 2 years ago • 1 comments

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 avatar May 23 '22 09:05 toniedzwiedz

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

toniedzwiedz avatar May 23 '22 09:05 toniedzwiedz