SPCOP – Another Need Tool

SPCOP CE is a Visual Studio extension to analyze SharePoint code.

SharePoint Code Check Community Edition

image

We can analyze different SharePoint versions using it:

  1. MOSS 2007
  2. SharePoint 2010
  3. SharePoint 2013

It analyzes the following:

  1. Memory Dispose Check
  2. Features, Content Types, List Templates
  3. XML files
  4. ASPX, ASCX files

It also provides continuous integration facilities.

Download

You can download the tool from:

http://visualstudiogallery.msdn.microsoft.com/c991a9ed-7a7b-465f-9be3-923443fd6e7b

image

Installation

Download & Install the tool. 

image

I am using Visual Studio 2012.  After installations restart Visual Studio.

We can do a simple testing to ensure it is working.

Testing

Create a new console SharePoint project & add a web part into it.

Inside the web part, please add the following code.

(Please note that we are not disposing the explicitly created SharePoint object)

image

Build the project & run SharePoint Code Check from the Solution Menu.

image

If successfully installed, you can see the Dispose error being caught.

image

This confirms you have SPCOP CE successfully installed.

References

http://blogs.msdn.com/b/torstenmandelkow/archive/2013/04/15/sharepoint-code-analysis-framework-beta-released.aspx

Summary

In this post we have explored another need tool for SharePoint application development.  For advanced needs like verifying WSPs, there is a client tool available with higher editions.

Leave a Reply

Your email address will not be published. Required fields are marked *