include::../description.adoc[]

== Noncompliant Code Example

----
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[]
