chore(analyzers): bump SonarAnalyzer.CSharp to 10.30.0.144632 #176
No reviewers
Labels
No labels
alpha:wave-0
alpha:wave-1
alpha:wave-2
alpha:wave-3
area:assets
area:combat
area:ecology
area:infra
area:render
area:scripting
area:ui
area:world
enhancement
epic
migration
post-alpha
roadmap
tech-debt
type:bug
type:chore
type:design
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
marco/IsoMmo!176
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/sonaranalyzer-10.30"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Renovate's #173 bumped SonarAnalyzer.CSharp
10.29.0.143774→10.30.0.144632but left CI red: the newer analyzer tightens S8969 (redundant null-forgiving!) and adds S8949 (forward aCancellationToken), and withTreatWarningsAsErrorsthose fail the build. This is the deliberate analyzer ratchet the repo documents (Directory.Build.props: "Bump these DELIBERATELY … addressing new findings in that same change") — the version bump plus the fixes, in one change. Supersedes #173 (close it in favour of this).What changed
Directory.Build.props: SonarAnalyzer pin →10.30.0.144632.!removed where the compiler already proves non-null (afterAssert.NotNull(...)etc.), across test files.TryXxxpass-throughs (AssetPack.TryGet,GameConnection.TryDequeue) where the!was actually suppressing a realCS8601. Fixed idiomatically with[MaybeNullWhen(false)] out …(mirroringDictionary.TryGetValue), so both the compiler and Sonar are satisfied — no suppression.Task.Run(ReceiveLoopAsync)→Task.Run(ReceiveLoopAsync, CancellationToken.None)(fire-and-forget; the receive loop already handles its own cancellation via_cts.Token, so an explicit opt-out at the scheduling call is the honest choice and avoids an unobserved cancellation on the discarded task).How it was tested
10.30.0.144632(TreatWarningsAsErrors).dotnet test IsoMmo.slnx— all green..editorconfigseverity downgrades, no#pragmasuppressions added.doppione
Superseded by #220 (SonarAnalyzer 10.31, the newer bump — rebased on main with the new 10.31 findings fixed, closes #164). Closing this older 10.30 bump.
Pull request closed