Wednesday, April 8, 2009

Debunking Cyclomatic Complexity

Great article by Andrew Binstock. Basically they did a survey that showed for the majority of modern code, the McCabe Cyclomatic Complexity Number does not tell you anything useful about the probability of defects. Basically, the number has to be greater than 25 to predict defects but must code is below 25 and from 1-25 the survey found no correlation between the number and the defect count.

No comments: