In response to a comment on this post, here are couple of source code analysis tools for managed code:
- NDepend – Free – NDepend analyses .NET assemblies of an application and generates design quality metrics.
- Complexity Analyzer – Costs Money – Automatically compute the complexity factors for your methods
- CCMetrics – Free – A utility for determining the cyclomatic complexity of any .Net binary
- CRPlugin – Free – Requires DxCore, which you have if you use CodeRush or Refactor!