Measure and record C# code metrics.

SourceMonitor measures and records source code metrics. SourceMonitor parses ASCII source code looking for countable metrics items. As these items are identified, their counts are accumulated for each source code file, and within each function or method. These metrics are then accumulated into summary metrics for all files in each checkpoint.If you develop software with Visual Studio, you can add items to your tools menu in Visual Studio that invoke SourceMonitor. You can also operate SourceMonitor from a batch file using commands stored in a text file. SourceMonitor measures metrics for source code written in C++, C, C#, VB.NET, Java, Delphi, Visual Basic (VB6) or HTML.Exports metrics to XML or CSV for further processing with other tools.

C# Metrics

  1. Statements
  2. Percent Comment Lines
  3. Percent Documentation Lines
  4. Classes, Interfaces, Structs
  5. Methods per Class
  6. Statements per Method
  7. Calls per Method
  8. Maximum Method Complexity
  9. Maximum Block Depth
  10. Average Block Depth
  11. Average Complexity

Download SourceMonitor

 

Technorati Tags: ,,

 
 
 

One Response to “Measure and record C# code metrics.”

  1. Sam
    8. March 2008 at 01:53

    Static analysis? FxCop analyzes the IL… this might be useful.

Leave a Reply