All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.css.rules.css.S4648.html Maven / Gradle / Ivy

There is a newer version: 10.17.0.28100
Show newest version

Having duplicated font names doesn’t help to read the font declaration and may be an indicator the author of the line was not sure how to configure it. This rule raises an issue when font or font-family properties contain a duplicated font name. This rule ignores $sass, @less, and var(--custom-property) variable syntaxes.

Noncompliant Code Example

a {
  font-family: 'Georgia', Georgia, serif; /* Noncompliant; 'Georgia' is duplicated */
}

Compliant Solution

a {
  font-family: Georgia, serif;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy