Granville Barnett

Run FxCop on your code it costs nothing!

I've seen quite a bit of code written by others recently, for various reasons but the one thing that they all have in common is miserable results when running FxCop (Code Analysis).

Running FxCop is a great way to gain consistency through guidelines that have been well established by both Microsoft and it's customers.  I'm sorry people but there is just no excuse for not using this tool, it's free for a start!  And second it consumes only a few seconds of your life.

For those that are reading this and thinking "what is FxCop?" put simply it's a static analysis tool for your code (managed code that is).

I'm not sure if it will get migrated to CodePlex, for now it's still on GotDotNet.

If you are not going to take my word for why you should use it, fine, but I should tell you that FxCop won the Chairman's Award for Engineering Excellence at Microsoft - really it's that good!  Nice to see Dr Watson on there too :-)

Brad Abrams talks more about the award and FxCop here.

In short please run FxCop on code libraries you are developing, you will really benefit from it's guidance.

Note: and yes the number of times I have linked to the FxCop project page was intentional!

Comments

No Comments