rspec/rules/S2916/rule.adoc

30 lines
655 B
Plaintext
Raw Normal View History

== 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
2022-02-04 17:28:24 +01:00
[source,text]
----
div.main span.login input.btn { // Noncompliant using the default threshold of 3
// ...
}
----
2022-01-25 18:36:46 +01:00
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
2022-01-25 18:36:46 +01:00
endif::env-github,rspecator-view[]