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.

StyleCop for ReSharper is Feature Complete. RC (refresh) Released.

[Start update 26.02.2009]

I've pushed up another release (0.0.14301.000) that contains fixes for all RC Refresh (0.0.14293.004) reported bugs:

Fixes:

  • Fixed: reported RC bugs
  • Fixed: add customer repro around inserting documentation (SA1503)
  • Fixed: adding option for 1500. Fixing bracket on same line issue for split line object initializers
  • Fixed: adding QF for 1001 - thats checks for the dodgy extra space rule in [2,2] declarations
  • Fixed: adding the NDoc element names for layout of xmldoc comments.
  • Fixed: bug where Multiple declaration types were not being swapped correctly unless they had an initial value.
  • Fixed: change highlights to not highlight the whitespace at the beginning of a line.
  • Fixed: closing curly bracket new line action properly. Sorted for object initializers now too.
  • Fixed: compare using aliases with an OrdinalIgnoreCase StringComparison.
  • Fixed: for blank lines after single line comments and C Style comment blocks
  • Fixed: for QF 1611 if inside a param dec when opening the QF.
  • Fixed: new Utils code to support the fix for this. Constants (and maybe others) dont return an IDeclaration for their containing element.
  • Fixed: null ref exception.
  • Fixed: remove call to CSharpCodeFormatterImpl().Format in case the defaults aren't correct.
  • Fixed: remove extra parans from around Lamdba Expressions if not required.
  • Fixed: replace the functions that figured out a TextRange for a linenumber using the StyleCop model to use the R# model which is much simpler.
  • Fixed: update spacing rule after a comma. So unless its a > ] ) or comma it should be a space. 

[End update 26.02.2009]

StyleCop for ReSharper is now feature complete in that is has reached feature parity with StyleCop 4.3.

There are 148 StyleCop (4.3) rules.

  • 38 of these must be fixed manually (normally because you have to type descriptive text or rename variables).
  • Of the remaining 110 rules 58 are fixed by R# Code Cleanup (silent mode).
  • Of the 52 now remaining we have Code Cleanup rules that fix all of them.

We also provide 106 Quick Fixes that provide in place context menu fixes for violations for the 110 rules that can be fixed automatically. Download the latest release from the Codeplex site.

This will be the final release before v1.0 at which point we will branch the code and focus on supporting ReSharper 4.5

Quick Fixes:

SA1100: DoNotPrefixCallsWithBaseUnlessLocalImplementationExists
SA1108: BlockStatementsMustNotContainEmbeddedComments
SA1109: BlockStatementsMustNotContainEmbeddedRegions
SA1119: StatementMustNotUseUnnecessaryParenthesis
SA1609: PropertyDocumentationMustHaveValue
SA1636: FileHeaderMustContainFileName
SA1641: FileHeaderCompanyNameTextMustMatch

Code Clean Up Modules:

SA1100: DoNotPrefixCallsWithBaseUnlessLocalImplementationExists
SA1108: BlockStatementsMustNotContainEmbeddedComments
SA1109: BlockStatementsMustNotContainEmbeddedRegions
SA1119: StatementMustNotUseUnnecessaryParenthesis
SA1023: DereferenceAndAccessOfSymbolsMustBeSpacedCorrectly
SA1609: PropertyDocumentationMustHaveValue

Fixes:

Fixed: Special case for <para> elements. If it contains -or- then it doesn't force InnerXml onto a new line.
Fixed: Updated to 'VersionNumberIncrement.target' to resolve build issue where it doesn't have the latest version config file.
Fixed: Add a missing default of MaintainabilityOptions.
Fixed: Ensure that our performance setting defaults to 9 on a new installation. Renamed many of our xml config entries to ensure they are setup correctly.
Fixed: Dont swap "" for string.Empty if its inside an Attribute or a case statement label. Do swap it if its @""
Fixed: Removing redundant methods.
Fixed: If static constructor has default text for an instance constructor then replace it completely. Update tests.
Fixed: Read StyleCop settings for whether rules are enabled and only clean up code if they are.
Fixed: All method invocations were being swapped to this.
Fixed: Inserted doc comments weren't being formatted being being inserted so you had to do CTRL E,F again
Fixed: Fixing the parameter documentation on constructors for code cleanup.
Fixed: Updated to 'VersionNumberIncrement.target' to resolve build issue where it doesn't have the latest version config file.
Fixed: Update Documentation

Published 18 February 2009 14:34 by howard.vanrooijen

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

 

Howard van Rooijen's Blog said:

Update : StyleCop for ReSharper is now feature complete . We're almost at the finish line - we’ve added

February 18, 2009 14:36
 

Howard van Rooijen's Blog said:

Update : StyleCop for ReSharper is now feature complete . In my previous post about StyleCop for ReSharper

February 18, 2009 14:36
 

Howard van Rooijen's Blog said:

Update : StyleCop for ReSharper is now feature complete . A huge amount of work has been done over the

February 18, 2009 14:36
 

Howard van Rooijen's Blog said:

Update : StyleCop for ReSharper is now feature complete . A number of people reported a few issues with

February 18, 2009 14:36
 

Howard van Rooijen's Blog said:

Update : StyleCop for ReSharper is now feature complete . While I was on holiday Microsoft released a

February 18, 2009 14:37
 

Howard van Rooijen's Blog said:

Update : StyleCop for ReSharper is now feature complete . [UPDATE] See post " StyleCop for ReSharper

February 18, 2009 14:37
 

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

February 20, 2009 08:35
 

igorbrejc.net » Fresh Catch For February 20th said:

February 20, 2009 14:01
 

Andrew Stopford's Weblog said:

Howard has announced that the StyleCop addon for ReSharper has reached RC .

February 24, 2009 21:01
 

DotNetShoutout said:

Thank you for submitting this cool story - Trackback from DotNetShoutout

February 25, 2009 12:45

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