Skip to content

Releases: dotnet/roslynator

v4.8.0

02 Jan 14:23
3b53fca

Choose a tag to compare

Added

  • Add analyzer "Add/remove blank line between switch sections" (RCS0061) (PR)
    • Option (required): roslynator_blank_line_between_switch_sections = include|omit|omit_after_block
    • Make analyzer RCS0014 obsolete
  • Add analyzer "Declare explicit/implicit type" (RCS1264) (PR)
  • Add code fix "Declare as nullable" (PR)
    • Applicable to: CS8600, CS8610, CS8765 and CS8767
  • Add option roslynator_use_collection_expression = true|false (PR)

Changed

  • Replace type declaration's empty braces with semicolon (RCS1251 (PR, PR)
  • [TestFramework] Bump MSTest.TestFramework to 3.1.1 (PR)
  • [TestFramework] Bump xunit.assert to 2.6.2 (PR)
  • Bump Roslyn to 4.7.0 (PR)

Fixed

v4.7.0

03 Dec 17:49
e4e5aad

Choose a tag to compare

Added

  • Add analyzer "Dispose resource asynchronously" (RCS1261) (PR)
  • Add analyzer "Unnecessary raw string literal" (RCS1262) (PR)
  • Add analyzer "Invalid reference in a documentation comment" (RCS1263) (PR)
  • Add analyzer "Add/remove blank line between switch sections" (RCS0061) (PR)
    • Option (required): roslynator_blank_line_between_switch_sections = include|omit|omit_after_block
    • Make analyzer RCS0014 obsolete

Changed

  • Improve refactoring "Remove comment" RR0098 (PR)
  • Remove trailing dot from analyzer's title (PR)
  • Group code fix "Change accessibility to ..." (PR)
  • [CLI] Bump Roslyn to 4.8.0 (PR)
  • Group refactoring "Remove members above/below" (PR)
  • Rename analyzers (PR)
    • "Add new line before embedded statement" -> "Put embedded statement on its own line" (RCS0030)
    • "Add new line before statement" -> "Put statement on its own line" (RCS0033)
  • Group refactoring "Wrap in ..." (PR)

Fixed

v4.6.4

24 Nov 03:14
037cd8e

Choose a tag to compare

Release 4.6.4 (#1277)

v4.6.3

23 Nov 22:21
e66835f

Choose a tag to compare

Added

  • [CLI] Add command find-symbol (PR)
    • This command can be used not only to find symbols but also to find unused symbols and optionally remove them.
    • Example: roslynator find-symbol --symbol-kind type --visibility internal private --unused --remove

Changed

Fixed

v4.6.2

19 Nov 16:17
af63ef9

Choose a tag to compare

Added

  • [CLI] Add note to docs that Roslynator CLI does not contain any analyzers itself (PR)

Fixed

  • Fix RCS1234 (PR by @jakubreznak)
  • Fix refactoring Inline method (PR)
  • [CLI] Fix globbing (PR)
  • [CLI] Remove assembly resolving (PR)
  • Detect false positive from Unity code (RCS1169) (PR)
    • Introduce config option roslynator_unity_code_analysis.enabled = true|false
    • Make option roslynator_suppress_unity_script_methods obsolete

v4.6.1

23 Oct 18:59
bc9b8ac

Choose a tag to compare

Fixed

v4.6.0

18 Oct 17:57
3eab64e

Choose a tag to compare

Added

  • Add social card (PR)
  • Add nullable annotation to public API (PR)
  • Add refactoring "Remove directive (including content)" (PR)

Changed

  • Update logo (PR, PR)
  • Migrate to .NET Foundation (PR, PR, PR)
  • Bump Roslyn to 4.7.0 (PR)
    • Applies to CLI and testing library.
  • Bump Microsoft.Build.Locator to 1.6.1 (PR)
  • Improve testing framework (PR)
    • Add methods to DiagnosticVerifier, RefactoringVerifier and CompilerDiagnosticFixVerifier.
    • Add property DiagnosticVerifier.Descriptor (BREAKING CHANGE)
    • Add property CompilerDiagnosticFixVerifier.DiagnosticId (BREAKING CHANGE)
    • Make property DiagnosticTestData.Descriptor obsolete.
    • Make property CompilerDiagnosticFixTestData.DiagnosticId obsolete.

Fixed

v4.5.0

26 Aug 22:23
d4d27d8

Choose a tag to compare

Added

  • Add SECURITY.md (PR)
  • Add custom FixAllProvider for RCS1014 (PR by @jamesHargreaves12)
  • Add more cases to RCS1097 (PR)
  • Add analyzer "Use enum field explicitly" (RCS1257) (PR)
    • Enabled by default.
  • Add analyzer "Unnecessary enum flag" RCS1258 (PR)
    • Enabled by default.
  • Make Roslynator.Rename.SymbolRenamer public (PR)
  • Analyzer 'Remove empty syntax' (RCS1259) (PR)
    • This analyzer replaces following analyzers:
      • Remove empty statement (RCS1038)
      • Remove empty 'else' clause (RCS1040)
      • Remove empty object initializer (RCS1041)
      • Remove empty 'finally' clause (RCS1066)
      • Remove empty namespace declaration (RCS1072)
      • Remove empty region directive (RCS1091)
      • Remove empty destructor (RCS1106)
  • [CLI] Add glob pattern matching (--include or/and --exclude) (PR, PR)
  • Add analyzer "Include/omit trailing comma" (RCS1256) (PR)
    • Required option: roslynator_trailing_comma_style = include|omit|omit_when_single_line
    • Not enabled by default

Changed

  • [CLI] Open help in web browser when running command roslynator help <COMMAND> (PR)

Fixed

v4.4.0

01 Aug 13:48
c623b1e

Choose a tag to compare

Added

  • Add GitHub workflow (#1112)

Changed

  • [CLI] Bump Roslyn to 4.6.0 (#1106)
  • Bump Roslyn to 4.4.0 (#1116)
  • Migrate documentation to Docusaurus (#922)
  • [Testing Framework] Bump Roslyn to 4.6.0 (#1144)

Fixed

v4.3.0

24 Apr 20:07
56128e4

Choose a tag to compare

Changed

  • [CLI] Bump Roslyn to 4.5.0 (#1043)
  • [CLI] Downgrade version of Microsoft.Build.Locator from 1.5.5 to 1.4.1 (#1079)
  • [CLI] Add more information about the found diagnostics to the XML output file (#1078 by @PeterKaszab)

Fixed