rspec/rules/S3923/apex/rule.adoc

49 lines
691 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,apex]
----
if (b == 0) { // Noncompliant
doOneMoreThing();
} else {
doOneMoreThing();
}
switch on i { // Noncompliant
when 1 {
doSomething();
}
when 2 {
doSomething();
}
when 3 {
doSomething();
}
when else {
doSomething();
}
}
----
include::../exceptions.adoc[]
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[]