rspec/rules/S1066/apex/rule.adoc
2023-10-16 09:46:41 +00:00

45 lines
571 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
Code like
[source,apex]
----
if (condition1)
{
if (condition2) // Noncompliant
{
...
}
}
----
Will be more readable as
[source,apex]
----
if (condition1 && condition2) // Compliant
{
...
}
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../highlighting.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]