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 v0.0.14279 Released

Update: StyleCop for ReSharper is now feature complete

In my previous post about StyleCop for ReSharper I said that I'd be posting updates about the tool to my personal blog rather than my EMC Consulting blog, but unfortunately there was a hardware failure on the server that hosts my personal blog and I've not had a chance to get things up and running again - so I'm posting the details here instead.

StyleCop for ReSharper seems to be gaining in popularity - the last release had over 1700 downloads - we're now listed on the official ReSharper plugins page and I'm sure this is driving a lot of traffic to the project. We've also received some very positive feedback in blog posts and on forums and more than a couple of mentions on Stack Overflow.

The majority of the new features in this release are due to Andy Reeves and Jon Sharratt. Thanks for the huge amount of effort guys.

StyleCop for ReSharper does not work with ReSharper 4.5 nightly builds - as soon at 4.5 reaches RC we'll start work on making StyleCop for ReSharper compatible.

I think Andy's last check-in note says it all:

"CTRL E, F on all our cs files with our latest code running against it. It autofixed over 90% of issues.... nice."

The new release is available on the StyleCop for ReSharper CodePlex site.

Release Notes:

We’ve added 29 new fixes (both Quick-Fixes and Code Clean Up Modules in addition to the 63 already implemented). If you would like to see all the Quick-Fixes and Code Clean-Up Modules see the Overview of Currently Supported Fixes page.

Fixes:

Fix: #20503: CodeCleanup: No line feed is inserted after the header when a header is newly inserted.
Fix: #20509: SA1513:ClosingCurlyBracketMustBeFollowedByBlankLine, exclude object initializers
Fix: #20510: Code Cleanup: CommentsMustBePreceededByBlankLine, Splits existing member documentation
Fix: #20529: Company name and copyright text now read for the StyleCop.settings files directly. Removed the company name from our Options page.
Fix: Update ReSharper Code Style Sharing File.
Fix: Doesn't insert blank line between block statements now
Fix: GetDocCommentBlockNodeForDeclaration to work with IFieldDeclaration too.
Fix: Major changes to the way documentation is created and updated, fixing all the issues raised.
Fix: Setting the default for single line property accessors.
Fix: Bugs in the documentation of Boolean properties.
Fix: Add BulbItem for swapping fields to private.
Fix: Bug where invalid declarations would get removed completely - now they are just left alone.
Fix: Bug in Options where the performace value was only set if the assemblypath had been found. Set default perf to 1.
Fix: Bug that was trying to cast a NamespaceDeclaration to a TokenNode.
Fix: For not inserting a new line before a comment if its got a comment before it already.
Fix: Adding support for <inheritdoc /> in doc comments. If we see any we ignore the rest of the section.
Fix: If companyname is not in a StyleCop settings file we use string.Empty.
Fix: All the standard constructor/destructor text for private instances and structs.
Fix: If summary elements are empty we now treat them as missing and replace them.
Fix: Bug for extra linefeed being inserted.

Quick Fixes Added:

SA1020: IncrementDecrementSymbolsMustBeSpacedCorrectly
SA1021: NegativeSignsMustBeSpacedCorrectly
SA1022: PositiveSignsMustBeSpacedCorrectly
SA1023: DereferenceAndAccessOfSymbolsMustBeSpacedCorrectly
SA1025: CodeMustNotContainMultipleWhitespaceInARow
SA1026: CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation
SA1107: CodeMustNotContainMultipleStatementsOnOneLine
SA1500: CurlyBracketsForMultiLineStatementsMustNotShareLine
SA1501: StatementMustNotBeOnSingleLine
SA1502: ElementMustNotBeOnSingleLine
SA1503: CurlyBracketsMustNotBeOmitted
SA1504: AllAccessorMustBeMultiLineOrSingleLine
SA1505: OpeningCurlyBracketsMustNotBeFollowedByBlankLine
SA1506: ElementDocumentationHeadersMustNotBeFollowedByBlankLine
SA1507: CodeMustNotContainMultipleBlankLinesInARow
SA1508: ClosingCurlyBracketsMustNotBePrecededByBlankLine
SA1509: OpeningCurlyBracketsMustNotBePrecedededByBlankLine
SA1510: ChainedStatementBlocksMustNotBePrecededByBlankLine
SA1511: WhileDoFooterMustNotBePrecededByBlankLine
SA1512: SingleLineCommentsMustNotBeFollowedByBlankLine
SA1513: ClosingCurlyBracketMustBeFollowedByBlankLine
SA1514: ElementDocumentationHeaderMustBePrecededByBlankLine
SA1515: SingleLineCommentMustBePrecededByBlankLine
SA1516: ElementsMustBeSeparatedByBlankLine

Code Cleanup Added:

SA1510: ChainedStatementBlocksMustNotBePrecededByBlankLine
SA1511: WhileDoFooterMustNotBePrecededByBlankLine
SA1513: ClosingCurlyBracketMustBeFollowedByBlankLine
SA1512: SingleLineCommentsMustNotBeFollowedByBlankLine
SA1515: SingleLineCommentMustBePrecededByBlankLine
Published 04 February 2009 08:24 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

No Comments

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