IfSQ
Missing "else" for 50-80% of plain "if"s
Research Finding:
50% to 80% of plain "if" statements should have had an "else" clause.
IfSQ Defect Indicators based on this finding:
-
DP-3—Unexpected State Not Trapped
Part of a program that uses a value to switch between different branches does not trap unexpected cases.
Source:
An Analysis of Some Commercial PL/1 Programs
- James L. Elshoff
- Recorded 1976 in IEEE Transactions on Software Engineering, SE-2, no. 2, June
- Pages 113-20