rspec/rules/S4524/rule.adoc

19 lines
280 B
Plaintext
Raw Normal View History

== Why is this an issue?
2020-06-30 12:49:37 +02:00
include::description.adoc[]
[source,cpp]
----
switch (param) {
case 0:
doSomething();
break;
default: // Noncompliant: default clause should be the first or last one
error();
break;
case 1:
doSomethingElse();
break;
}
----