Posts
76
Comments
310
Trackbacks
7
Cyclomatic Complexity and FXCop

I am a big believer in ‘Simple is Better’. Having built-in cyclomatic complexity metrics displayed in the IDE while you are coding or reviewing code is awesome.  I use an IDE add-in tool called CodeRush but you can review DevMetrics as well.  Dennis Bottjer introduced me to another tool called nDepend that measures cyclomatic complexity as well as other statistics.

Learn more about cyclomatic complexity here - http://en.wikipedia.org/wiki/Cyclomatic_complexity

I imagine many Enterprise developer groups struggle with decreasing budgets and timelines while trying to maintain, integrate, test and review code.  Today, you not only have the challenge of maintaining code quality with developers in the States but the problem exasperates if you employ overseas developers.  Automating your build, assemble and deployment process is critical to maintaining as well as improving the quality of your code.

My group practices Continuous Integration using CruiseControl.Net to improve the quality of our code.  We have only used CruiseControl.Net for a year and it has made a big difference. 

CruiseControl.Net is one of the best non-commercial Continuous Integration tools.  CruiseControl.Net not only automates the build process but integrates well with nUnit, MSBuild, nAnt, nCover, Simian and Fitnesse.  CruiseControl.Net also integrates with FXCop.

Our plan to measure and improve code quality is to introduce code analysis and testing tools into the build process.  One approach is to measure the cyclomatic complexity level and fail the build if the complexity level is too high.  I understand Visual Studio Team Edition includes a Continuous Integration solution as well as measuring cyclomatic complexity out of the box.

I came across a post by Dennis Forbes that describes using a custom FXCop rule to measure cyclomatic complexity.  http://www.yafla.com/dennisforbes/FxCop-Cyclomatic-Complexity/FxCop-Cyclomatic-Complexity.html

posted on Saturday, June 23, 2007 4:03 PM Print
Comments
Gravatar
# re: Cyclomatic Complexity and FXCop
MillieRay28
7/2/2010 7:40 AM
  
People in every country get the http://lowest-rate-loans.com from various creditors, just because it's easy and fast.
Gravatar
# re: Cyclomatic Complexity and FXCop
CaseAudrey19
8/27/2010 1:36 PM
  
You have to utilize all power of mind. Nevertheless, it will be better to order coursework online.
Gravatar
# re: Cyclomatic Complexity and FXCop
PeggyDavid28
11/9/2010 1:50 PM
  
Some scholars want to find the masters thesis related to this post. If they know about your supreme release, they will plausibly purchase the thesis.
Gravatar
# re: Cyclomatic Complexity and FXCop
BernadineWalsh34
6/7/2011 11:00 PM
  
I strictly recommend not to wait until you earn big sum of cash to order goods! You can just take the personal loans or small business loan and feel yourself fine
Gravatar
# re: Cyclomatic Complexity and FXCop
GREGORYShannon
7/4/2011 7:22 PM
  
I guess that people know, how irritating the custom term papers creating seems to be. But, smart people have a chance to resolve this issue taking an assistance of the essay writing services.
Gravatar
# re: Cyclomatic Complexity and FXCop
MargretShannon
7/26/2011 5:02 AM
  
Social bookmarks submission seems to be not so hard, nevertheless not every man is able to cope with it. In my case, I naturally use the social bookmarking submission service; that guys do very good work.
Gravatar
# re: Cyclomatic Complexity and FXCop
four post lifts
3/26/2012 6:20 AM
  
Yeah, I agree with your tag line. Simplicity indeed attracts more people not because of its physical but the fact that it only needs basic steps to be recognized. Great share!
Gravatar
# re: Cyclomatic Complexity and FXCop
EulaPhelps
4/6/2012 5:42 AM
  
The best college students can complete the term paper of premium quality. But, very often they have no time for such stuff. Then they have to purchase europe essays, which is very bright solution for occupied students.
Gravatar
# re: Cyclomatic Complexity and FXCop
HawkinsManuela20
5/13/2012 4:25 AM
  
The world includes fascinating things. As for me, a chance to buy an essay is great. People ought to value everything that our life get us!

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 1 and 6 and type the answer here: