Skip to content

chore: Bump the nuget-dependencies group with 1 update - #15

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/src/nuget-dependencies-75237dc662
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/src/nuget-dependencies-75237dc662

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Updated SonarAnalyzer.CSharp from 10.35.0.4138 to 10.37.0.15768.

Release notes

Sourced from SonarAnalyzer.CSharp's releases.

10.37.0.15768

What's in this release:

  • 🔮 C# 15 readiness: 21 false positives fixed for the new language features, from union types and closed classes to extension indexers and labeled break/continue.

False Positives

NET-744 Fix S2933 FP: support extensions usage
NET-4264 Fix S6444 FP: Do not raise on constant regex patterns without quantifiers
NET-4811 Fix S2326 FP: C# 15 An unused Type Parameter cannot be removed from a closed type
NET-4840 Fix S3626 FP: C# 15 labeled for loops are not redundant jumps
NET-4841 Fix S1751 FP: C# 15 labeled loops do more than one iteration
NET-4873 Fix S1694 FP: C# 15 closed classes should not be suggested for conversion to an interface
NET-4875 Fix S3878 FP: C# 15 collection-expression with(...) argument dropped by params suggestion
NET-4881 Fix S6967 FP: .NET 11 async DataAnnotations validation (TryValidateObjectAsync) not recognized
NET-4885 Fix S1125 FP: C# 15 union types should not be reported for 'is true'/'is false'
NET-4887 Fix S6797 FP: DateOnly and TimeOnly query parameters are reported as unsupported
NET-4888 Fix S3168 FP: C# 15 async void method in a union is not exempted when passed as an argument
NET-4889 Fix S4583 FP: C# 15 BeginInvoke paired with EndInvoke inside an indexer is reported
NET-4890 Fix S1940 FP: C# 15 negated ordering comparison on Decimal32/BFloat16 gets an unsafe "opposite operator" suggestion
NET-4892 Fix S3453 FP: C# 15 collection expression with(...) arguments should count as instantiating a private constructor
NET-4893 Fix S2094 FP: C# 15 empty closed class should not be reported
NET-4894 Fix S2094 FP: C# 15 empty union case type should not be reported
NET-4907 Fix S3060 FP: C# 15 union types should not be reported for type tests on this
NET-4908 Fix S2701 FP: C# 15 union compared with a bool literal should not be reported
NET-4932 Fix S3973 FP: labeled loops are reported when the label is on the same line as the loop
NET-4949 Fix S3267 FP: C# 15 assignment followed by a labeled break should suggest "Where" instead of "Any"
NET-4973 Fix S1144 FP: C# 15 private extension indexers used via element access are reported as unused
NET-4974 Fix S1144 FP: C# 15 private constructors called only through collection expression with(...) are reported as unused
NET-4989 Fix S3247 FP: C# 15 union implementing an interface is reported for 'is'/cast and 'is'/'as' on that interface
NET-4991 Fix S2219 FP: C# 15 union values must not be suggested to use the "is" operator
NET-4998 Fix S6617 FP: "Contains" suggestion changes behavior when the Equals argument needs an implicit conversion (e.g. C# 15 unions)

Performance

NET-5175 Restore IsAutoProperty as a method and evaluate it last in SE TrackedSymbol

10.36.0.15337

Release notes - .NET Analyzers - 10.36

Two months since 10.35, and the nets have been busy. We went fishing for false positives and landed over twenty, and we caught a crash and a memory leak along the way. We kept the new rules and stopped throwing back the good code fixes.

What's in the catch:

  • 🔮 .NET 11 / C# 15 readiness: we support the new language features (union types, closed hierarchies, extension indexers, collection expression with(...) arguments, labeled break/continue). We probed the SonarWay rules against them and fixed false positives that turned up.
  • 🆕 Three new rules: S9414, S9415 and S9422.
  • 🛠️ Better code fixes: S2178 and S1110, plus a faster, leak-free S110.
  • 🎯 23 false positives gone, including EF Include rules, async/CancellationToken rules and MAUI/WPF handlers.

Feature

NET-1612 Fix S2178 CodeFix: Using short-circuiting operator does not preserve operator precedence
NET-2154 Use Roslyn location mapping capabilities
NET-4654 Create rule S9414: Local variable declarations and assignments should be joined
NET-4655 Create rule S9415: Local functions should be marked "static" when they don't capture variables
NET-4662 Create rule S9422: Lock object fields should use "System.Threading.Lock" type

False Positive

NET-1596 Fix S5332 FP: Don't raise http warning for SOAP actions
NET-2677 Fix S2325 FP: WPF event handlers should be ignored
NET-2937 Fix S2325 FP: Awaitable 'IsCompleted' must be instanced
NET-3295 S6664: Exclude TRACE-level logging calls
NET-4142 Fix S2187, MSTEST0016 FP: Test methods hidden behind #if NET are not seen on other target frameworks
NET-4633 Fix S9023 FP: Select() projector calling an opaque custom mapper is treated as dropping every Included navigation
NET-4640 Fix S2325 FP: MAUI event handlers should be ignored
NET-4671 Fix S1121 FP: Boolean assignments in while conditions
NET-4705 Fix S8949 FP: obsolete CancellationToken overloads are considered as alternatives
NET-4710 Fix S8969 FP: null-forgiving operator flagged as redundant when operand flows through a nullable-returning implicit conversion operator
NET-4733 Fix S6966 FP: EditorBrowsable(Never) overload is suggested as an awaitable alternative
NET-4737 Fix S9022 FP: Include reported redundant via ReportReprojectedIncludes before a materializing (Func<>) terminal operator
NET-4738 Fix S9022 FP: ToDictionary(Async)/ToLookup key selector ignored when checking whether Include is dead
NET-4739 Fix T0015 FP: Local function last in a lambda or nested local function
NET-4742 Fix FP S8949: Suppress suggestion when the producer call is already configured via WithCancellation/ConfigureAwait
NET-4818 Fix S4507 FP: Alerting on !app.Environment.IsProduction()
NET-4836 Fix S4049 FP: Should not raise on Extension Properties
NET-4837 Fix S4049 FP: Should not raise on awaiter GetResult
NET-4842 Fix S3900 FP: C# 15 Extension Indexers should not raise
NET-4913 Fix S3346 FP: .NET 11 BitArray.PopCount in Debug.Assert should not be reported
NET-4916 Fix S3903 FP: C# 15 types nested in a union should not be reported
NET-4938 Fix S3260 FP: C# 15 closed classes should not be suggested for sealing
NET-5034 Fix S3263 FP: C# 15 union static field referencing another static field in the same union is always misreported as out of order

False Negative

NET-4741 Fix S9022 FN: Include not reported redundant before Max/Min when selector dereferences the included nav

Bug

NET-4547 S110 recompiles filteredClasses regexes on every compilation start, leaking IL on .NET Framework
NET-4629 Fix ChangeSyntaxElement to replace on the container
NET-4686 S1110: Restore C# quick-fix support for nested expressions
NET-4794 Consider .NET 11 Razor declaration partials generated code
... (truncated)

Commits viewable in compare view.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps SonarAnalyzer.CSharp from 10.35.0.4138 to 10.37.0.15768

---
updated-dependencies:
- dependency-name: SonarAnalyzer.CSharp
  dependency-version: 10.37.0.15768
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: nuget-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant