FxCop is a tool that performs static code analysis of .NET code. It provides hundreds of rules that perform various types of analysis (Design, Globalization, Interoperability, Maintainability, Mobility, Naming, Performance, Portability, Reliability, Security, Usage).