Update: StyleCop for ReSharper is now feature complete.
A number of people reported a few issues with the last release of StyleCop for ReSharper - firstly users were experiencing some performance issues and also some said that Visual Studio would report package load errors (this was due to the way we were trying to resolve assemblies and how the current AppDomain is hosted within Visual Studio) - thankfully the latest addition to the StyleCop for ReSharper Team, Remo Gloor, quickly submitted a patch.
This release also has some new features – for example new QuickFixes for StyleCop violations SA1208, SA1209, SA1210, SA1211 and SA1633 and also a new StyleCop setting has been added to the StyleCop ReSharper Options section. This new control allows you to specify how aggressive you want the analysis to be – and can configure it between Real Time and Delayed:
New Features:
- Add QuickFixes for SA1208, SA1209, SA1210 and SA1211. They qualify all namespaces, then order them, group them and remove duplicates. (Andy Reeves)
- Add QuickFix for SA1633, which inserts a standard StyleCop File Header into the current code file. (Howard van Rooijen)
- Add new Performance Setting to the “StyleCop Options” section of the ReSharper Options pages. This slider allows you to select “more resources” (i.e. real time analysis) or “less resources” which ensures that analysis of source files only happens every couple of seconds. (Howard van Rooijen)
- Fix for issue where opening XML files are causing NullReferenceException because R# resolves the filepath to be {_RESHARPER_DummyWebPages_}. (Howard van Rooijen)
- Better detection of StyleCop Assembly. (Howard van Rooijen / Remo Gloor)
- Better resolution of settings.STYLECOP file based on this description. (Colin Nash)
- Added some addiotional null checking, around line parsing to handle the situation when looping through tokens, one might be null. (Howard van Rooijen)
- Added some additional checking in GetTextRange to solve NullReferenceException when entering block comment on first line. (Colin Nash)
- Added some checking to ensure the highlight ranges endpoint is valid. (Colin Nash)
Bug Fixes
- Added fix for issue #19530 (More accurate highlighting of errors in xml header). (Remo Gloor)
- Added fix for issue #19505 (Plugin works too slow). (Howard van Rooijen)
- Added fix for issue #19501 (Package Load Failure after installing StyleCop). (Remo Gloor / Colin Nash / Howard van Rooijen)
- Added fix for issue #19468 (Installation crash VS 2008 SP1). (Remo Gloor / Colin Nash / Howard van Rooijen)
- Added fix for issue #19441 (Dangerous AssemblyResolve implementation causes VS.NET not beeing able to resolve other assemblies than StyleCop) (Remo Gloor / Colin Nash / Howard van Rooijen)
- Added fix for issue #18787 (Could not load file or assembly 'Microsoft.StyleCop, ...') (Remo Gloor / Colin Nash / Howard van Rooijen)
- Added fix for issue #19597 (Starting a block comment at the top of a file causes unhandled NullReferenceException.) (Colin Nash)