Project Description

SharePoint Of View - SharePoint FxCop Rules is intended to analyse the quality and performance of your SharePoint custom code.
It performs check on the Dispose Patterns according to the Best Practices published by Microsoft.
It's developed in C# with Visual Studio 2008.

Visual Studio integration

FxCop executable

Here is the list of rules implemented at the moment :
Please use Discussions and Issue tracker to submit any ideas or problems you might have with this project.
Please read all information about installation and particulary about pre requisites at bottom of this page before submit issues about installation.

Current version : SharePoint Of View - FxCop Rules 1.0

I. Resources used for this project

II. Pre requisites:

FxCop 1.36 will run under and analyze programs written for .NET Framework versions 2.0, 3.0, and 3.5.
These rules are written with the WSS 3.0 / MOSS 2007 object model.
  • Using these rules in Visual Studio :
    • Visual Studio Team System 2008 Development Edition
  • Using these rules independently :

III. Installation
  • Using these rules in Visual Studio :
    • Copy the DLL in the following directory : %ProgramFiles%\Microsoft Visual Studio 9.0\Team Tools\Static Analysis Tools\FxCop\Rules
    • Restart Visual Studio
  • Using these rules independently :
    • For all FxCop projects :
      • Copy the DLL in the following directory : %ProgramFiles%\Microsoft FxCop 1.36\Rules
      • Restart FxCop
    • For one project, select the "Project" menu, click on "Add rules..." and select the downloaded DLL

IV. SharePoint FxCop Rules Future
  1. Updating rules according to new guidances.
  2. Adding new rules which are not relative to the Dispose Patterns. For instance, to avoid the use of SPList.Items property, which returns all items in a list while we can use a SPQuery object to filter them.

Last edited Apr 13, 2009 at 9:16 AM by Adrien, version 13