Skip to content

[Host] Fix IDE0001, IDE0300 and IDE0305 style findings - #593

Merged
LarsLaskowski merged 1 commit into
mainfrom
host-ide-style-fixes
Nov 29, 2026
Merged

LarsLaskowski merged 1 commit into
mainfrom
host-ide-style-fixes

Conversation

@LarsLaskowski

Copy link
Copy Markdown
Owner

Pull Request

📖 Description

Removes the redundant namespace qualifications (IDE0001) and replaces ToList()/ToArray() calls with collection expressions (IDE0300, IDE0305) across the host and test projects. .editorconfig raises these IDE rules to error so they stay fixed, S1125 is suppressed in src/GlobalSuppressions.cs, and the Reihitsu analyzer and CLI move to 1.6.0 (AngleSharp to 1.10.5, assembly version to 1.4). No behavior changes.

🎫 Issues

None.

💬 Reviewer Notes

The source changes are mechanical and came from dotnet format style followed by reihitsu-format. One manual fix: SqliteTestDatabase.CreateDbContext passes interceptors directly to AddInterceptors, because a collection expression there triggers S3220. The S1125 suppression is assembly-wide, but the file is linked only into the host project; the rule is already off in .editorconfig.

📑 Test Plan

Release build with 0 warnings and 0 errors, formatter check clean, and the full solution test run passed (2621 passed, 13 skipped, 0 failed).

✅ Checklist

  • I have added or updated Unit Tests for the change.
  • I have tested my changes.
  • I have run Format and Build from .squad/stack.md, and the Analyzer gate reports no diagnostic in a changed file.
  • The Coverage gate in .squad/stack.md passes (new or changed production code with the branch conditions its report records, line coverage overall).
  • I have updated the project documentation (README.md, ARCHITECTURE.md) and the area document of every changed behavior to reflect my changes.
  • Each decision with lasting weight has its decision record, committed with the change.
  • I have read the CONTRIBUTING documentation and followed the project's code style guidelines.
  • New dependencies, if any, were added the way Dependencies in .squad/stack.md prescribes.
  • The PR carries its release-notes label (CONTRIBUTING); a change that breaks existing users carries breaking-change and says so in the Description.
  • The C# rules in csharp.instructions.md are followed.

⏭ Next Steps

None.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@LarsLaskowski
LarsLaskowski marked this pull request as ready for review November 29, 2026 11:32
@LarsLaskowski
LarsLaskowski merged commit fada378 into main Nov 29, 2026
7 checks passed
@LarsLaskowski
LarsLaskowski deleted the host-ide-style-fixes branch November 29, 2026 11:33
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.

1 participant