Cyclomatic Complexity:
- Measures structural complexity of code
- It is created by calculating number of different code paths in program
- In visual Studio 2012, use “Calculate Code Metrics” to identify cyclomatic complexity
- Cyclomatic Complexity values from
- 1 to 10 is Simple program – Less risk
- 11 to 20 is medium complex program – Moderate Risk
- 21 to 50 is complex program – High Risk
- >51 untestable program – Very high Risk
References: