Skip to content

sonar: fix remaining mechanical issues (batch 5) - #401

Merged
MPCoreDeveloper merged 1 commit into
masterfrom
sonar/mechanical-cleanup-5
Sep 4, 2026
Merged

sonar: fix remaining mechanical issues (batch 5)#401
MPCoreDeveloper merged 1 commit into
masterfrom
sonar/mechanical-cleanup-5

Conversation

@MPCoreDeveloper

Copy link
Copy Markdown
Owner

Fifth batch against the SonarCloud new-code dashboard (28 open -> 21, all remaining are S3776 cognitive-complexity):

  • S8969 (HashIndex): redundant null-forgiving operator removed.
  • S3267 (Table.CRUD): oldHashKeys snapshot rewritten with Where/ToDictionary.
  • S1199 (Table.CRUD): whole-file PK-order pre-pass extracted into IsFilePkOrderedUpTo.
  • S125 x3 (Database.Batch, Storage.Append, benchmark Program): explanatory comments reworded/marked as intentional prose.
  • S2068 (benchmark Program): NOSONAR on the throwaway local benchmark credential.

Validated: SharpCoreDB.Tests 1777/0, CQRS 64/0, both benchmark and test projects build.

- HashIndex: remove redundant null-forgiving operator (S8969)
- Table.CRUD: oldHashKeys snapshot via LINQ (S3267); extract whole-file PK-order pre-pass into IsFilePkOrderedUpTo (S1199)
- Database.Batch/Storage.Append/benchmark: reword explanatory comments flagged as S125 (mark prose as intentional)
- benchmark: NOSONAR:S2068 for throwaway local bench credential
@MPCoreDeveloper
MPCoreDeveloper merged commit b144680 into masterSep 4, 2026
3 checks passed
@MPCoreDeveloper
MPCoreDeveloper deleted the sonar/mechanical-cleanup-5 branch September 4, 2026 19:54
@sonarqubecloud

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@MPCoreDeveloper