29 lines
547 B
Plaintext
29 lines
547 B
Plaintext
``++return++``, ``++break++``, ``++continue++``, and ``++throw++`` statements should be followed by a ``++}++``, ``++case++``, or ``++default++``.
|
|
|
|
|
|
----
|
|
function sayHello() {
|
|
if (true) {
|
|
return;
|
|
var b; // Non-Compliant - this will never be executed
|
|
} else {
|
|
var c;
|
|
}
|
|
|
|
while (true) {
|
|
break;
|
|
var d; // Non-Compliant - this will never be executed
|
|
}
|
|
}
|
|
----
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::comments-and-links.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|