rspec/rules/S3923/rule.adoc

34 lines
450 B
Plaintext
Raw Normal View History

== Why is this an issue?
2020-06-30 12:48:39 +02:00
include::description.adoc[]
=== Noncompliant code example
[source,text]
----
if (b == 0) { // Noncompliant
doOneMoreThing();
} else {
doOneMoreThing();
}
int b = a > 12 ? 4 : 4; // Noncompliant
switch (i) { // Noncompliant
case 1:
doSomething();
break;
case 2:
doSomething();
break;
case 3:
doSomething();
break;
default:
doSomething();
}
----
2020-06-30 12:48:39 +02:00
include::exceptions.adoc[]