rspec/rules/S1128/css/rule.adoc
2021-01-27 13:42:22 +01:00

16 lines
381 B
Plaintext

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.