-
Type:
Finding Detection
-
Status: Closed
-
Resolution: Won't Fix
-
Labels:None
-
Default Severity:Major
-
Impact:Low
-
Likelihood:High
-
Remediation Function:Linear
-
Constant Cost:1
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 } }
- is deprecated by
-
RSPEC-1763 All code should be reachable
- Active