Welcome to MSDN Blogs Sign in | Join | Help

New SourceMonitor 2.0 Code Metrics Tool

If you've read my article on Code Review and Complexity, you'll know that I recommend using metrics to help monitor the relative quality of source code. I really like the simplicity and speed of Campwood Software's SourceMonitor, a freeware tool written by Jim Wanner. I just noticed that he's released SourceMonitor 2.0 for download, and I'd highly recommend taking a look at it...especially if you've never looked at or captured code metrics. Some of the improvements that I'm looking forward to include:

  • The ability to selectively include subdirectories in a project
  • Support for C# 2.0 language constructs
  • The Kiviat diagram...a lot of useful information at a quick glance

The Kiviat diagram below is from some sample code I generated awhile back. I can quickly tell from this diagram that I should check to see if I've commented my code properly and take a look to see which method(s) are driving my complexity and depth outside typical limits (which are configurable). Fortunately, SourceMonitor makes it very easy to find and review the complex code.

Published Wednesday, September 15, 2004 8:40 PM by mswanson
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: New SourceMonitor 2.0 Code Metrics Tool

This is very nice, thanks for the link!
Wednesday, September 15, 2004 10:32 PM by Nick Parker

# Code Metrics and Code Metrics Tools

Friday, July 29, 2005 2:36 AM by Robin Curry

# re: New SourceMonitor 2.0 Code Metrics Tool

SourceMonitor truly exceeded my expectations!! Thanks a lot.

Monday, November 27, 2006 2:08 AM by Sudharsan

# Compared to what?

Nice review - what other metrics does this tool produce?

One aspect of code analysis that is important throughout the operational lifecycle of software is comparative size.  That is, how much code has changed (deleted, added, modified, unmodified) relative to a prior version.

Take a look at EZ-Metrix if size measurement and comparisons are important to your software-intensive business.

Regards,

James

Friday, February 15, 2008 1:51 PM by James Heires

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker