Skip to content

deps: update dependency roslynator.analyzers to v5 - #159

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/roslynator.analyzers-5.x
Open

deps: update dependency roslynator.analyzers to v5#159
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/roslynator.analyzers-5.x

Conversation

@renovate

@renovate renovate Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
Roslynator.Analyzers 4.2.05.0.0 age adoption passing confidence

Release Notes

dotnet/roslynator (Roslynator.Analyzers)

v5.0.0

Added
  • Add roslyn5.0 NuGet package flavor (analyzers/dotnet/roslyn5.0/cs) (PR)
Breaking
  • Enable nullable annotations on Roslynator.Common and Roslynator.Workspaces.Common (#​1817)
    • Source-breaking for projects that compile against this surface with nullable reference types enabled.
  • [Testing Framework] Lower Roslyn dependency of testing packages to 3.8.0 so that the Roslyn version is determined by the consumer's own Microsoft.CodeAnalysis.* reference instead of being forced to a fixed version (PR)
    • Roslynator.Testing.Common, Roslynator.Testing.CSharp, Roslynator.Testing.CSharp.Xunit and Roslynator.Testing.CSharp.MSTest now depend on Microsoft.CodeAnalysis.* >= 3.8.0 (previously >= 4.14.0).
    • Roslynator.Testing.Common no longer depends on Roslynator.Core.
    • Action required: a test project that previously relied on the testing framework to pull in Roslyn 4.14.0 should now add its own reference, e.g. <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.14.0" />. The chosen version raises the maximum C# language version the parser can accept; test sources still parse at CSharpParseOptions.Default unless you set parse options / LanguageVersion (for example LanguageVersion.Latest).
    • Action required: a test project that used Roslynator.Core types via the old transitive dependency must now add an explicit Roslynator.Core package reference.
Changed
  • Bump Roslyn to 5.0.0 (PR)
    • CLI targets Roslyn 5.0.0
    • Solution build and tests use Roslyn 5.0.0 by default (the testing packages floor at 3.8.0; see Breaking)
  • Replace Visual Studio 2022 extension with Roslynator 2026 for Visual Studio 2026 ([18.0,19.0)) (PR)
    • Extension ships refactorings and compiler diagnostic code fixes; analyzers via NuGet
    • Roslynator 2022 remains available as the last 4.x VSIX
  • Visual Studio Code extension ships refactorings and compiler diagnostic code fixes only (PR)
    • Analyzers require Roslynator NuGet packages
    • Requires OmniSharp with Roslyn 5.x (C# extension 1.39.15+; set dotnet.server.useOmnisharp to true)
Removed
  • Remove leftover implementations of obsolete analyzers (XML descriptors remain). Enable the successor rules instead: RCS0014 → RCS0061, RCS0022 → RCS0021, RCS0038 → RCS0015, RCS0043 → RCS0020, RCS0047 → RCS0053, RCS1008/RCS1009/RCS1010/RCS1012/RCS1176/RCS1177 → RCS1264, RCS1035 → RCS1260, RCS1036 → RCS0063, RCS1038/RCS1040/RCS1041/RCS1066/RCS1072/RCS1091/RCS1106 → RCS1259, RCS1063/RCS1064/RCS1065 → RCS1252, RCS1100/RCS1101 → RCS1253, RCS1237 → RCS1254.
  • Remove SyntaxInverter (Roslynator.CSharp.Workspaces). Use SyntaxLogicalInverter.
  • Remove unused obsolete DiagnosticCategories constants and make the type internal.
  • Remove unused ROS0001/ROS0002 diagnostic IDs.
  • Remove obsolete constructors/properties from the testing package (DiagnosticTestData, CompilerDiagnosticFixTestData, RefactoringTestData).
  • Remove legacy config keys roslynator.max_line_length, roslynator.prefix_field_identifier_with_underscore, and roslynator_suppress_unity_script_methods. Use roslynator_max_line_length, roslynator_prefix_field_identifier_with_underscore, and roslynator_unity_code_analysis.enabled.
  • [CLI] Remove obsolete command generate-doc-root. Use generate-doc --root-file-path instead.
  • Remove bundled analyzers from Visual Studio extension (PR)
  • Remove bundled analyzers from Visual Studio Code extension (PR)
    • Use Roslynator NuGet packages for diagnostics
  • Remove AnalyzersOptionsPage from Visual Studio extension (PR)
  • Drop support for Visual Studio 2022 VSIX (PR)
    • Pin last 4.x release (Roslynator 2022) or use NuGet packages on Visual Studio 2022
Fixed
  • Fix analyzers RCS1263 and RCS1139 for C# 14 extension block documentation (PR)

v4.16.1

Fixed
  • Fix analyzer RCS1187 to report a field consistently when the containing type has a static constructor that does not assign the field
  • Fix analyzer RCS1060 to not report a file that contains only multiple partial declarations of the same type (PR)
  • Fix analyzer RCS1231 to not suggest in for ref struct parameters (#​1725) (PR)
  • Fix analyzer RCS1260 false positive for omit_when_single_line on multi-line object/collection initializers (#​1439) (PR)
  • Fix analyzer RCS0036 to report blank lines between single-line declarations in records (PR)
  • Fix analyzer RCS1046 to report async void methods without Async suffix (PR)
  • Fix analyzer RCS1265 to not report catch clauses with a when filter (PR)
  • Fix analyzer RCS0034 for types with a primary constructor and multiple constraint clauses (PR)
  • Fix analyzer RCS1231 to not report CancellationToken in sync methods returning Task (PR)
  • [CLI] Fix GitLab output format to use relative paths, forward slashes, and 1-based line numbers (PR)
  • [CLI] Fix generate-doc to omit internal interfaces from type declarations and the Implements section (PR)

v4.16.0

Added
  • [CLI] Suppress error code from Roslynator when it detects issues in code but runs successfully (PR by @​mdrybak)
  • [CLI] Add SARIF output for CLT (PR)
Fixed

v4.15.0

Added
  • Add option roslynator_null_conditional_operator.avoid_negative_boolean_comparison (PR)
    • Do not suggest to use null-conditional operator when result would be ... != true/false
    • Applicable for RCS1146
Fixed
Changed
  • Migrate to .NET 10 (including command-line tool) (PR)

v4.14.1

Added
  • [CLI] Add support for slnx files (PR by @​darthtrevino)
    • Bump Roslyn to 4.14.0
    • Drop support for .NET 7 SDK
Fixed
Changed
  • Change behavior of analyzer RCS1206 (PR)
    • The condition for option omit_when_single_line will be that the braces/brackets are on the same line, not just the expression in the braces/brackets

v4.14.0

Added
  • [CLI] Add support for GitLab analyzer reports (PR)
Fixed
Changed
Removed
  • Remove legacy config options (PR)

v4.13.1

Added
  • Support custom path of a test file (PR)
    • It's possible to specify a directory path and/or a file name of a test file.
    • Applies to testing library (Roslynator.Testing.*).

v4.13.0

Fixed
Added
Changed
  • Move analyzer RCS1036 to Formatting.Analyzers as RCS0063 (PR)
    • Old analyzer still works but is marked as obsolete.
  • Bump Roslyn to 4.12.0 (PR)
    • Applies to CLI and testing library.
  • Bump Microsoft.Build.Locator to 1.7.8 (PR)

v4.12.11

Added
  • [CLI] Add support for .NET 9 (PR)
Fixed
Changed
  • Move DiagnosticRules and DiagnosticIdentifiers to Roslynator.Common (PR)

v4.12.10

Fixed
Changed
  • Update whitespace formatting rules (PR)
  • Ensure that diagnostics are not reported with zero length (PR)

v4.12.9

Fixed
Changed
  • Update analyzer RCS1077 (PR)
    • Do not suggest to change list.FirstOrDefault(predicate) to list.Find(predicate).
      Performance gain is negligible and actually FirstOrDefault can be even faster on .NET 9 (see related issue for more details).

v4.12.8

Fixed

v4.12.7

Fixed
Changed

v4.12.6

Added
Fixed

v4.12.5

Fixed
Changed
  • Bump Roslyn to 4.11.0 (PR)
    • Applies to CLI and testing library.
Removed
  • [CLI] Remove support for .NET SDK 6 (PR)

v4.12.4

Fixed

v4.12.3

Fixed

v4.12.2

Fixed
  • [CLI] Fix loading of slnf files (PR)
  • [CLI] Fix --severity-level (PR)
  • Fix analyzer RCS1246 (PR)

v4.12.1

Added
  • [CLI] Add support for .NET 9 (PR)
Fixed
Changed
  • Move DiagnosticRules and DiagnosticIdentifiers to Roslynator.Common (PR)

v4.12.0

Added
Fixed

v4.11.0

Added
  • Add analyzer "Use raw string literal" RCS1266 (PR)
  • Add analyzer "Convert 'string.Concat' to interpolated string" RCS1267 (PR)
  • Simplify LINQ query RCS1077 (PR)
    • items.Select(selector).Average() => items.Average(selector)
    • items.Select(selector).Sum() => items.Sum(selector)
Fixed

v4.10.0

Added
Changed
  • Update analyzer RCS1197 (PR)
    • Do not report interpolated string and string concatenation
Fixed

v4.9.0

Added
  • Add support for Unity (PR)
    • Unity uses Roslyn 3.8 and this version is now supported by Roslynator NuGet packages with analyzers (Roslynator.Analyzers etc.)
Fixed

v4.8.0

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

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

v4.6.3

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

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

Fixed

v4.6.0

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

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

Added
Changed
Fixed

v4.3.0

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

Note

PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants