http://en.wikipedia.org/wiki/Cyclomatic_complexity
http://hissa.nist.gov/HHRFdata/Artifacts/ITLdoc/235/chapter2.htm
http://www.rkcole.com/articles/other/CodeMetrics-CCN.html
- add 1 for each if statement
- add 1 for each for statement
- add 1 for each while loop
- add 1 for each do-while loop
- add 1 for each && (an implied if statement)
- add 1 for each || (an implied if statement)
- add 1 for each ? (an implied if statement)
- add 1 for each . (an implied if statement)
- add 1 for each case statement
- add 1 for each default statement
- add 1 for each catch statement
- add 1 for each finaly statement
- add 1 for each continue statement
No comments:
Post a Comment