rspec/rules/S1940/apex/rule.adoc

35 lines
543 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,apex]
----
if ( !(a == 2)) { ...} // Noncompliant
Boolean b = !(i < 10); // Noncompliant
----
=== Compliant solution
[source,apex]
----
if (a != 2) { ...}
Boolean b = (i >= 10);
----
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[]