The Code Police: FXCop

One of the common issues programmers face is qa (quality assurance).  Usually this labor involves x amount of resources that focus on testing the application extensively.   As you can imagine, this labor is time consuming and error prone. 

An easy alternative for this issue is FXCOP.

FXCOP is a code analytical tool for .net managed code.  It checks that the code complies to Microsoft .NET Framework Design Guidelines.    It does so, by loading the compiled assembly of the code you want to check.  There is not code test writting involve. Just run FXCOP, open the code assembly you want to check and that’s it.

Usual areas that FXCOP covers include:

  • Library design
  • Localization
  • Naming conventions
  • Performance
  • Security
  • Besides identifying the error or warning we are incurring into, it also give us the exact line of this error and a possible solution for it. While some of this adviced solutions are pretty straight forward, others need a little bit thought to actually implement correctly. 

    By using this tool we can produce secure application of improved quality. 

     Happy Blogging!!!

    ~ by ajhorus on May 8, 2007.

    Leave a Reply