rspec/rules/S2916/rule.adoc

25 lines
555 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)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]