Wednesday, August 22, 2012

SourceMonitor for code metrics

http://www.campwoodsw.com/sourcemonitor.html

Following information can be retrieved in your source code:
  • No. of files
  • No. of lines
  • No. of statements
  • % of comments
  • % of docs
  • Classes
  • Max complexity
  • Max depth
  • Avg. depth
  • Avg complexity

If you are using a source control mechanism such as Perforce, then you can get the changes for each time period or revision. This is significantly fast also.