Search Wiki:
Resource Page Description
Enforces StyleCop rules on projects using Team Foundation Server check-in policy. Policy provides Visual Studio integration for integrated policy violations review.

Available for TFS 2008 and TFS 2010.

The policy depends on StyleCop binaries to perform actual analysis. Please refer to StyleCop project page for StyleCop specific information http://archive.msdn.microsoft.com/sourceanalysis. Current policy version is compiled with StyleCop version 4.3.3.0.

The sources (versions for VS 2008 and VS 2010, excluding StyleCop binaries) and compiled policy MSIs (again, for VS 2008 and VS 2010) are available for downloads.

For implementation details refer to the following blog posts:
Last edited Apr 18 2010 at 6:47 AM  by Eugenez, version 3
Comments
caponeman wrote  May 21 2010 at 4:47 PM  
Is there a way to import custom StyleCop rules into the cusotm check-in policy? When I import the StyleCop settings file, it does not pick up my custom rule. However, I can see the custom rule when I view the settings.stylecop file in the settings editor.

allenfeinberg wrote  Jul 7 2010 at 2:50 PM  
I downloaded version 4.4 from http://stylecop.codeplex.com/releases/view/44839 and I'm wondering how I can set a checkin policy for VS 2010. I see that the current StyleCop checkin policy only goes to 4.3.2.1. Will there be a new checkin policy available for 4.4?

valdisiljuconoks wrote  Jul 27 2011 at 10:47 AM  
I took initiative and recompiled policy for 4.5 version of StyleCop. Copyright remains for Attrice of course. Post here - http://dotnet.lv/blogs/vi/archive/2011/07/27/stylecop-4-5-team-foundation-server-2010-checkin-policy.aspx

Updating...
Page view tracker