Welcome to EMC Consulting Blogs Sign in | Join | Help

Howard van Rooijen's EMC Consulting Blog (2004 - 2010)

This blog has now moved to http://howard.vanrooijen.co.uk/blog - please update your subscriptions if you wish to receive new content.

New Release of StyleCop for ReSharper

[Update: A newer version has been released

It's been a while since I published StyleCop for ReSharper on CodePlex. Just after I put the project live, I discovered that another developer, by the name of Colin Nash, had a similar idea - fortunately after a quick chat with Colin we decided to join forces and the StyleCop for ReSharper Development Team was born! Within a few days we were joined by James Dawson, one of Conchango's seasoned Platform Architects and Jon Sharratt a recent recruit. The major push behind this release was to add as many of the features as requested by the community as possible, while also improving some of the existing features as well as fixing some bugs. We're also now listed on the official ReSharper Plugins page!

The major focuses have been on:

  1. Improved (more accurate) violation highlighting
  2. More accurate detection of the project settings.StyleCop file
  3. More accurate detection of the StyleCop assemblies
  4. Ability to choose the severity settings of each violation (error, warning, suggestion, hint, do not show)
  5. Ability to perform "Quick Fixes" on common StyleCop violations
  6. Improve installation experience (enforce pre-requisites, install on Visual Studio 2005 and 2008)
  7. Remove dependencies on .NET 3.5 and Visual Studio 2008

The actual bug fixes are as follows:

  • Added fix for issue #18633 (Installation crashes VS2008 (non SP1)).
  • Added fix for issue #18498 (Add ability to choose severity for each StyleCop Rule).
  • Added fix for issue #18490 (Plugin can't find Settings.SourceAnalysis file).
  • Added fix for issue #18717 (Plugin doesn't read StyleCop.Settings in solution folder).
  • Added fix for issue #18787 (Could not load file or assembly 'Microsoft.StyleCop, ...').
  • Added fix for issue #18749 (Adjusted version).
  • Added fix for issue #18775 (Plug-in requires .NET 3.5 and VS 2008).
  • Added fix for issue #19148 (Add context menu for changing the rule settings for each violation).
  • Added fix for issue #19146 (Enhance StyleCop setting search).
  • Added fix for issue #19147 (Crash when line is before the element).
  • Added fix for issue #19145 (Highlighting is at the wrong place for some rules).

Jon Sharratt concentrated on improving the violation highlighting and implemented the "Quick Fix" framework as well as some initial quick fixes for common spacing rules:

 06-11-2008 08-15-42

Colin Nash worked on the StyleCop assembly location feature:

16-10-2008 22-18-17

As well as the Inspection Severity options:

SCFR - Options

 James Dawson created a new WiX based installer, that enforces the pre-requisites of StyleCop 4.3 and ReSharper 4.1:

 16-10-2008 22-14-30

16-10-2008 22-14-46 

And also deals with installing the plug-in in the right directory for both Visual Studio 2005 & 2008 installations:

16-10-2008 22-14-59

One facet of running a CodePlex project that has really blown me away is the contributions of strangers. RemoGloor published several patches to the project, including this very nice feature - a quick fix to allow the user to set the inspection severity of any of the violations:

06-11-2008 08-11-37

Which creates a little dialog that allows you to chose you option (or open the main dialog):

 06-11-2008 08-13-16

Oh and I created a new logo for the project!

stylecop for resharper logo_smallest

I just wanted to say a big thank-you to all those who have downloaded the plug-in, added an issue or submitted a patch.

You can download the new release from the releases page on CodePlex. The next release will focus on adding more Quick Fixes. If you want to contribute to the project, drop me a line.

Published Thursday, November 06, 2008 10:03 AM by howard.vanrooijen
Filed under: , , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Andrew Stopford's Weblog said:

The StyleCop add-on for Resharper has really gathered steam and Howard has announced a new release .

November 11, 2008 11:28 PM
 

Stephen said:

Thank you so much for this tool!

Our team is in the process of converting from VB to C# and we adopted (most of) the StyleCop guidelines. Not sure how many lines of code, but we have 2000 projects... so it's a lot of work. This plug-in makes it so much easier to find - and now fix - the warnings. Thanks!

November 12, 2008 5:56 AM
 

Reflective Perspective - Chris Alcock » The Morning Brew #221 said:

November 12, 2008 8:25 AM
 

Steven said:

This is great! I've already on my own projects and I love it. Keep those features coming!

November 12, 2008 5:37 PM
 

Daren said:

Great effort Howard and team - I'm looking forward to gaining momentum and rolling it out stateside :)

November 12, 2008 9:37 PM
 

WOMBAT said:

Integrating Source Analysis with Refactoring tools

November 13, 2008 11:13 AM
 

Code Monkey Labs said:

General SubSonic 3.0 Preview 1 – Linq Has Landed : Rob Conery announces the first preview of SubSonic 3.0. I can’t be sure from the post, but Rob seems to be focusing on simplicity with this next release. Papercut : No bandages needed! Ken Robertson’s

November 17, 2008 4:40 AM
 

jojobar said:

I would like to see if this tool can respect the ExcludeFromStyleCop attribute in the project file. This allows flexibility of introducing stylecop in new files only and slowly making changes to the existing files. I could have contributed this part if the source code was available. Overall this is a great tool!

November 30, 2008 3:31 PM
 

howard.vanrooijen said:

@jojobar,

I've been thinking about that too, since I saw Jason's blog post. You are welcome to add this to the issues log on the codeplex site:

http://www.codeplex.com/StyleCopForReSharper/WorkItem/List.aspx

You are more than welcome to submit a patch - the project is hosted on CodePlex, so you have access to all the source:

http://www.codeplex.com/StyleCopForReSharper/SourceControl/ListDownloadableCommits.aspx

There is a hyperlink at the top of the page that will allow you to submit a patch.

Regards,

Howard

December 1, 2008 10:03 AM
 

Code Monkey Labs said:

General SubSonic 3.0 Preview 1 – Linq Has Landed : Rob Conery announces the first preview of SubSonic 3.0. I can’t be sure from the post, but Rob seems to be focusing on simplicity with this next release. Papercut : No bandages needed! Ken

February 23, 2009 3:35 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit

This Blog

Syndication

News

This blog has now moved - please visit http://howard.vanrooijen.co.uk/blog for new content!
Add to Live.com
Powered by Community Server (Personal Edition), by Telligent Systems