org.sonar.l10n.css.rules.css.S4648.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-javascript-plugin Show documentation
Show all versions of sonar-javascript-plugin Show documentation
Code Analyzer for JavaScript/TypeScript/CSS
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;
}