SonarCloud incorrect duplicate CSS selector code smells

I’m getting a new and unexpected code smell on some of my CSS files that haven’t been changed in years.

Unexpected duplicate selector "", first used at line 531

The lines it complains on are all similar to this (The first line is the offending line):

%roboto-light {
  @extend %font-roboto;
  font-weight: $font-weight-roboto-light;

Lines 531-533 are this:

%font-roboto {
  font-family: $font-family-roboto;

Any insight as to where this null string selector that is being complained about is coming from?

Whoops, looks like this was already acknowledged in Sonar rule css:S4666 is showing a false positive

1 Like