FxCop

Administrator

VB.NET Forum Admin
Joined
Jun 3, 2004
Messages
1,462
Programming Experience
10+
Alright viz, I'm not starting this just to ruffle your feathers as I know you're a fan of FxCop, however....

I personally don't care for FxCop. I don't believe a lot of what it provides to "fix" is relevant to the application. I don't agree with a lot of the findings either.

What are you thoughts on FxCop?
 
My feathers are totally un-ruffelled:) . FX-Cop is not a total solution by any stretch of the imagination but it is free and for people who may be just starting out in .Net it does provide some insight into where improvements can be made i.e

Use/Misuse of Pascal/Camel casing and Hungarian Notation

Use generics in .Net 2.0

To name but a few. I just thought that it was a nice free tool that could be used by guys/girls who are new to .net to help to improve their coding in some small way. To sound hypocritical here (because it is in my sig).. i don't use it because it just doen't go far enough for me. It is quite surprising though when i ran it against an app that i once wrote just how many things it did flag up, quite depressing actually!:)
 
I wouldn't be depressed by running it against an older app. I ran it against something new I'm developing and it spouted a bunch of nonsense, some of which I went in to change. For example, I have a few ReadOnly Properties and it barked that I should never do that! Some things for CLR compliance that threw my code for a loop, etc. Well, not literally! :)

Sure, it is something worth running against your code, it may point out something that can help, but don't spend all of your time trying to zero it out! I know of some devs that work for companies forcing them to have a completely clean FxCop run against their code!
 
I with you on this one. It certainly does go too far with somethings, and it probably could have a negative effect on someone new if they were to run it and saw over 200 things they had to change, infact i'd say bugger it and just not bother as well. But there were a few things that made me nod my head and go .. Oh yea. As for having a completely clean result from FxCop i doubt it will ever happen to me. You know, time is money and all that!!:)
 
Back
Top