Single line comment syntax should not be used in .less

  • versions used (SonarQube:, Scanner: sonar-scanner-msbuild-
  • 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:
    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?


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