Better to limit control flow complexity
Control-flow complexity has been correlated with low reliability and frequent errors.
IfSQ Defect Indicators based on this finding:
SP-3—Routine Too Complex
Control-flow complexity has been correlated with low reliabilty and frequent errors.
A Complexity Measure
- Tom McCabe
- Recorded 1976 in IEEE Transactions on Software Engineering, SE-2, no. 4, December
- Pages 308-20
Identifying Error-Prone Software - An Empirical Study
Software Defect Prevention Using McCabe's Complexity Metric
- William T. Ward
- Recorded 1989 in Hewlett-Packard Journal, April
- Pages 64-69