23

Can people suggest the best tool to determine the cyclic complexity with in a C# winforms code base.

GEOCHET
  • 21,119
  • 15
  • 74
  • 98
leora
  • 188,729
  • 360
  • 878
  • 1,366

5 Answers5

33

In Visual Studio I just go to Analyze/Calculate Code Metrics and I get cyclomatic complexity.

3rd party edit

  • Visual Studio 2015 community edition has it as well
surfmuggle
  • 5,527
  • 7
  • 48
  • 77
Steven
  • 3,878
  • 3
  • 21
  • 21
10

NDepend has a huge number of code analysis and query tools including Cyclomatic Complexity per type and method estimation.

Patrick from NDepend team
  • 13,237
  • 6
  • 61
  • 92
Paul Alexander
  • 31,970
  • 14
  • 96
  • 151
7

We are using SourceMonitor. It's free, very easy to use and easy to integrate with a CI server.

Juanma
  • 3,961
  • 3
  • 27
  • 26
0

There is a free plugin for Red Gate's .NET Reflector called CodeMetrics that does this.

Kenneth Cochran
  • 11,954
  • 3
  • 52
  • 117
0

DevExpress's Refactor Pro does that. It has a free trial, so you may want to give it a shot.

Mike_G
  • 16,237
  • 14
  • 70
  • 101