Repository navigation
Update NuGet packages - #342
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the dependency updates.
No open issues 🎉
What changed in this PR
Updates NuGet dependencies for static analysis, unit testing, and coverage collection in LinkDotNet.StringBuilder. No application code changes are included.
Changes:
- Updates shared SonarAnalyzer and StyleCop analyzers, moving StyleCop from a beta to a stable release.
- Updates the library’s Meziantou analyzer.
- Updates Microsoft.NET.Test.Sdk, xunit.v3, and coverlet.collector in the unit test project.
| File | Description |
|---|---|
| tests/LinkDotNet.StringBuilder.UnitTests/LinkDotNet.StringBuilder.UnitTests.csproj | Updates test SDK, xUnit, and coverage collector versions. |
| src/LinkDotNet.StringBuilder/LinkDotNet.StringBuilder.csproj | Updates Meziantou.Analyzer to 3.0.343. |
| Directory.Build.props | Updates shared SonarAnalyzer.CSharp and StyleCop.Analyzers versions. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
3.0.340→3.0.34318.11.0→18.12.010.35.0.4138→10.37.0.157681.2.0-beta.556→1.3.18010.1.0→10.1.14.0.2→4.0.3Release Notes
meziantou/Meziantou.Analyzer (Meziantou.Analyzer)
v3.0.343Compare Source
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.343
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.342...3.0.343
v3.0.342Compare Source
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.342
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.341...3.0.342
v3.0.341Compare Source
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.341
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.340...3.0.341
microsoft/vstest (Microsoft.NET.Test.Sdk)
v18.12.0Security fix
This release includes the fix for CVE-2026-105544, an elevation of privilege vulnerability in the VSTest artifact post-processor. The post-processor could consume a forged
executionComplete.jsonwritten by another local user, and then run attacker-controlled output handling.Affected:
Microsoft.TestPlatform.CLI18.11.0 and earlier. Every version from 18.11.1 on is fixed, including 18.12.0.Microsoft.TestPlatform.CLIis the VSTest build that we ship into the .NET SDK. The recommended way to get this fix is to update your .NET SDK to the latest patched version, see the advisory for the SDK versions.The fix is also released in the
Microsoft.TestPlatform.CLIpackage, for completeness. That package is rarely used directly. It is not a dependency ofMicrosoft.NET.Test.SdkorMicrosoft.TestPlatform, so those packages do not bring it in.Details: #16654 and dotnet/announcements#517
Using custom Docker images or Nano Server? See #16652
What's Changed
Full Changelog: microsoft/vstest@v18.11.0...v18.12.0
v18.11.1Security fix
This release fixes CVE-2026-105544, an elevation of privilege vulnerability in the VSTest artifact post-processor. The post-processor could consume a forged
executionComplete.jsonwritten by another local user, and then run attacker-controlled output handling.Affected:
Microsoft.TestPlatform.CLI18.11.0.Fixed in:
Microsoft.TestPlatform.CLI18.11.1.Microsoft.TestPlatform.CLIis the VSTest build that we ship into the .NET SDK. The recommended way to get this fix is to update your .NET SDK to the latest patched version, see the advisory for the SDK versions.The fix is also released in the
Microsoft.TestPlatform.CLIpackage, for completeness. That package is rarely used directly. It is not a dependency ofMicrosoft.NET.Test.SdkorMicrosoft.TestPlatform, so those packages do not bring it in.Details: #16654 and dotnet/announcements#517
Using custom Docker images or Nano Server? See #16652
What's Changed
Full Changelog: microsoft/vstest@v18.11.0...v18.11.1
SonarSource/sonar-dotnet (SonarAnalyzer.CSharp)
v10.37.0.15768Compare Source
What's in this release:
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
v10.36.0.15337Compare Source
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:
with(...)arguments, labeledbreak/continue). We probed the SonarWay rules against them and fixed false positives that turned up.Includerules,async/CancellationTokenrules 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
CancellationTokenoverloads are considered as alternativesNET-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 alternativeNET-4737 Fix S9022 FP: Include reported redundant via
ReportReprojectedIncludesbefore a materializing (Func<>) terminal operatorNET-4738 Fix S9022 FP:
ToDictionary(Async)/ToLookupkey selector ignored when checking whether Include is deadNET-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/ConfigureAwaitNET-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 GetResultNET-4842 Fix S3900 FP: C# 15 Extension Indexers should not raise
NET-4913 Fix S3346 FP: .NET 11
BitArray.PopCountinDebug.Assertshould not be reportedNET-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
filteredClassesregexes on every compilation start, leaking IL on .NET FrameworkNET-4629 Fix
ChangeSyntaxElementto replace on the containerNET-4686 S1110: Restore C# quick-fix support for nested expressions
NET-4794 Consider .NET 11 Razor declaration partials generated code
NET-4895 Fix S5332 Crash: C# 15 collection expressing a clear-text URL throws AD0001
DotNetAnalyzers/StyleCopAnalyzers (StyleCop.Analyzers)
v1.3.180Compare Source
This is the first stable StyleCop.Analyzers release since 1.1.118. It includes the entire 1.2 beta line and the 1.3 revival: the analyzers now understand C# 8 through the C# 15 previews, many long-standing bugs are fixed, and the project is once again actively maintained. Thank you to everyone who contributed code, reviews, translations and bug reports over the long gap.
Highlights
allows ref struct, C# 14 extension blocks and thefieldkeyword, and C# 15 preview unions with theclosedandsafemodifiers, instead of ignoring that syntax or crashing on it. (#4142, #4139, #4137, #4163, #4148, #4191, #4193)?:) expressions are laid out consistently, SA1315 requires overriding and implementing parameters to keep their inherited names, SA1317 reports identifiers that use letters outside basic Latin A–Z, SA1653 reports<summary>documentation on more than one part of a partial type, and SA1654 reports escaped generic brackets increfs (for exampleList<T>vsList{T}). SX1412 is an opt-in alternative to SA1412 that requires UTF-8 without a BOM. All of these except SX1412 are on by default as warnings. (#3942, #4299, #4318, #4314, #4315, #4328).editorconfig. New settings includeorderingRules.memberKindOrder,orderingRules.accessibilityOrderandlayoutRules.allowBracelessIfStatements(bracelessifs are off by default; the accessibility order default is unchanged). (#4221, #3285, #4324, #4359, #4319)zh-CN) resources and documentation, finishes the Czech translations, and includes more translations of code-fix documentation text (Czech, Dutch, Russian and others). Rule documentation and status are published on GitHub Pages. (#4285, #4286, #3374, #3944, #3900, #4220, #4218)Behavior changes worth knowing about
Upgrading from 1.1.118, or from a 1.2 beta, may produce new or different diagnostics:
<summary>on more than one part, but ignores generated partial declarations such as WPF*.g.csfiles. (#4148, #4149, #4152, #4308, #4299, #4393)IntPtrandUIntPtrin XML documentationcrefs, or in shared source compiled for targets wherenintisn't equivalent. SA1121 and SA1125 also report System types in using alias targets. (#4287, #4395, #4175)includeInferredTupleElementNamesis off. (#4202)_forforeachvariables andusingdeclarations. (#4203)filemodifier as an access modifier. (#4198)protected readonlyfields when SA1307 is enabled. (#4217)&,|,^) and>>>. SA1408 reports??mixed with&&or||without parentheses. (#4289, #4323)extern aliasdirectives using the same placement setting asusingdirectives. (#4313)[NotNullWhen(true)] out string? foo. (#4321)maintainabilityRules.topLevelTypessetting. (#4281, #4301, #4316)documentInterfacessetting. WithdocumentInterfaces: false, public interfaces and their members are still required whendocumentExposedElementsis on. WithdocumentInterfaces: "exposed", members of interfaces that aren't actually exposed are not reported. (#3140, #4346, #4343)extern alias. (#4341)?and:lines line up and are indented past the condition's last line. The SA1143 code fix keeps multi-line branches intact. (#4336, #4374, #4392).symbols.nupkgis gone, because PDBs are now embedded in the DLLs. (#4173)All changes
Fixes
!) by @pantosha in #3071Configuration
📅 Schedule: (UTC)
* 0-3 1 * *)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate CLI.