CodeRush for Roslyn 17.1.7

Released: Aug 21, 2017

Updates in 17.1.7

Features

 Code Coverage

  • You can now exclude specific projects from Code Coverage analysis using the *.runsettings file. For details refer to Microsoft's article, Customizing Code Coverage Analysis.
  • You can now create and apply Filters to the Code Coverage report. For example, you can create a filter that only shows members with less than 70% coverage.

Code Analysis - Unused Members

  • Added a new analyzer that detects unused members.
  • You can also configure the highlighting of such members in the code editor.
  • The unused members can be safely deleted and this won't affect program behavior.

Refactorings and Code Providers

  • The Use string.Format refactoring is now available on interpolated strings.

Project-wide Code Cleanup (Preview)

  • You can now run Code Cleanup for the entire project. Simply right-click the project you want to clean in the Solution Explorer and select Cleanup Project from the context menu.
  • While the project is cleaned, a progress window is displayed.
  • If code cleanup is cancelled while it is still in progress, the code will remain unchanged. Note: This feature is in a preview state, and may break or change the behavior of your code. You can undo the entire operation using the Visual Studio's Undo action (available only when any changed document is open).

Fixes

  • Code Cleanup mistakenly removes code in a preprocessor directive.
  • Code Formatter - .ToArray should be chaining with .Select, and should be indented at the same level as .Select.
  • Code Formatter - Add the "Wrap open brace" and "Wrap close brace" options for the "Lambda Expression" formatting rule.
  • Code Providers - Errors when using the move to namespace code provider.
  • General - Visual Studio hangs on exporting CodeRush settings.
  • Member Icons don't show for all members.
  • Move To Region - Header and regions lists have different weight.
  • Move To Region does not show existing regions in VB.
  • Move To Region does not work in VB.net in certain cases.
  • Templates - Errors when using the smart return template.
  • Visual Elements - The Member Icons menu closes when the cursor is moved and should be selected for the second time.