rspec/rules/S1128/css/rule.adoc

35 lines
681 B
Plaintext
Raw Permalink Normal View History

== Why is this an issue?
2020-06-30 12:47:33 +02:00
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
2020-06-30 12:47:33 +02:00
2022-02-04 17:28:24 +01:00
[source,css]
2020-06-30 12:47:33 +02:00
----
@import 'a.css';
@import 'a.css'; // Noncompliant
@import url("a.css");
@import url("a.css"); // Noncompliant
----
=== Exceptions
2020-06-30 12:47:33 +02:00
2021-01-27 13:42:22 +01:00
This rule ignores ``++@import++`` in ``++less++`` files.
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]