Single line comment syntax should not be used in .less

  • versions used (SonarQube: 7.9.2.30863, Scanner: sonar-scanner-msbuild-4.7.1.2311)
  • I run a scan, and got a reported issue “Unexpected double-slash CSS comment” (rule: Single line comment syntax should not be used) in a .less file with single line comments in the form: // comment.
    The rule specifies:
    Exceptions:
    This rule ignores single line comments in less and scss files.
    It looks like the rule is not ignoring the .less file and providing the issue, however from the conversion to .less to .css the comments are removed, is this a false positive?

Hi,

I created a ticket to fix this S4668 reports on `less` files (and on wrong line) while should be ignored · Issue #369 · SonarSource/sonar-css · GitHub