There really is just so much in the recently released Visual Studio March CTP that it’s frankly hard to keep track of it all. Todd King, from our Static Analysis team, has recently posted about yet another important advancement from his team that’s new as of the March CTP. He writes:
Announcing the new Code Metrics feature for Visual Studio ‘Orcas’…this new feature allows users to generate code metrics for projects and solutions and displays the results in the Code Metrics Results tool window… This feature currently calculates five different metrics; Maintainability Index, Cyclomatic Complexity, Depth of Inheritance, Class Coupling, and Lines of Code.
Using these metrics, you’ll be able to find those areas of your code that are particularly complicated and hard to maintain that might benefit from refactoring or a bit of rearchitecting. Perhaps, even more interesting, using these metrics during new code development, you can monitor your progress and know when you’re getting into trouble before it’s too late.