27 April 2005

FxCop

I downloaded FxCop and installed it. It is something like NuMega Code Review.

I opened my calculator project .dll and ran the FxCop analysis...

FxCop scans the code and checks it against it's built in rules database which is based on Microsoft's .NET Framework Design Guidelines.

Apparently there are 1370 rules to follow, so I forgive myself for making 12 mistakes. The code review is very helpful, for each problem it finds it tells you how critical the fault is and provides a link to a help page that tells you how to resolve the problem. This is a very good way to learn about the design guidelines.

For example, it picks up on any instances where you have used the wrong case for identifiers. Obviously the more experience you have the fewer issues there should be. Definitely something to run regularly before checking code in.