devMetrics is a tool that can be used to collect and report software metrics on Microsoft® .NET C# projects. By using the software metrics you can identify areas in code that may be problematic to quality and maintenance, and focus on refactoring and improving these portions of code.
devMetrics can be run as a Visual Studio® .NET Add-in or as a stand-alone command line tool to analyze your C# code:
After installing you will see devMetrics in the Visual Studio® .NET Tools menu. To analyze your code and produce a report, select the devMetrics Analyze menu item. For more on using the devMetrics Add-in, click here
After installing you can run the command line utility and generate reports by typing
devMetrics <project_directory>
Example:
devMetrics “E:\My Documents\Visual Studio Projects”
For more on using the devMetrics command line, click here
devMetrics provides software metrics, through reports, that you can use to identify potentially problematic areas in your code. For example, areas that have a higher likelihood of quality and maintenance issues can be identified by locating large values of code complexity, large number of members in a class or large number of lines or statements in a member. For more information and definitions of each measure, click here.
Note devMetrics is built using the analysis engine found in devAdvantage, an automated code review and correction tool provide by Anticipating Minds.