org.sonar.l10n.css.rules.css.S1128.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 the import of the same file twice, makes one of them useless. Leaving them in reduces the code’s readability, since their presence can be
confusing.
Noncompliant Code Example
@import 'a.css';
@import 'a.css'; // Noncompliant
@import url("a.css");
@import url("a.css"); // Noncompliant
Exceptions
This rule ignores @import
in less
files.