[Start update 26.02.2009]
I've pushed up another release () 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