9.3 Analyzing Code Inside Visual Studio with CR_Metrics

Standalone complexity-analysis tools are vital for a comprehensive picture of your code base, but it’s nice to be able to take a quick look at metrics for the code you’re currently working on without having to leave your development environment. If you’re using Visual Studio, CR_Metrics enables you to do just that—you can quickly examine the metrics without having to leave Visual Studio to fire off another app or a task in your build system.

CR_Metrics, part of the CR_Plugin package, is built on the DXCore framework from Developer Express. DXCore is an IDE integration framework enabling developers to quickly create powerful add-ins for Visual Studio.

CR_Metrics computes cyclomatic complexity and adds two other very useful metrics: lines of code and a custom maintenance complexity metric.

CR_Metrics at a Glance

Tool

CR_Metrics

Version covered

1.02.28.0

Home page

http://sourceforge.net/projects/crplugin/

Power Tools page

http://www.windevpowertools.com/tools/7

Summary

Handy tool for quickly examining assembly and file metrics inside Visual Studio

License type

BSD (plug-in only; DXCore restricted)

Online resources

Forum

Supported Frameworks

.NET 1.1, 2.0

Related tools in this book

CR_Documentor, Peli’s Reflector Addins, SourceMonitor, NDepend

Getting Started

CR_Metrics requires DXCore, available from Developer Express (http://www.devexpress.com/Downloads/NET/IDETools/DXCore/ ...

Get Windows Developer Power Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.