I have a situation which demands the following code metrics.
Maintainability index > 80 & Cyclomatic complexity < 20
But as per MSDN (http://msdn.microsoft.com/en-us/library/cc667398(v=VS.90).aspx).
- Maintainability index > 20 is green
- Cyclomatic complexity < 25 is good.
I need to understand the following:
- Is it worth investing time to improve maintainability Index from 20 to 80?
- If we don't achieve a maintainability index > 80, will there be an increase in maintenance cost?
- What is the impact of keeping Cyclomatic complexity < 25?
Thanks in advance.