-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Rules
-
Labels:None
RSPEC-126 has been modified to add exception:
Exceptions
When all branches of an if-else if end with return, break or throw, the code that comes after the if implicitly behaves as if it was in an else clause. This rule will therefore ignore that case.
The rule should be updated to cover these cases.
- relates to
-
RSPEC-126 "if ... else if" constructs should end with "else" clauses
- Active