rspec/rules/S4524/rule.adoc
Fred Tingaud 4dcb3c509e
Modify rule S4524: Adapt to LaYC (#1927)
Co-authored-by: vilchik.elena <elena.vilchik@sonarsource.com>
2023-06-06 13:02:30 +00:00

19 lines
280 B
Plaintext

== Why is this an issue?
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;
}
----