rspec/rules/S2916/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

30 lines
655 B
Plaintext

== Why is this an issue?
Style selectors with a lot of elements are difficult to understand and to maintain. Further, they hamper the maintainability of the underlying documents to which they're applied, having, in effect, a double whammy.
=== Noncompliant code example
[source,text]
----
div.main span.login input.btn { // Noncompliant using the default threshold of 3
// ...
}
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
=== on 6 May 2015, 07:19:04 Stas Vilchik wrote:
Looks good
=== on 20 Jul 2015, 11:50:00 Ann Campbell wrote:
formerly targeted to CSS
endif::env-github,rspecator-view[]