Skip to content

Strip decorative comment banners and restatements#26

Merged
HarryCordewener merged 1 commit into
masterfrom
chore/lean-comments
Jul 6, 2026
Merged

Strip decorative comment banners and restatements#26
HarryCordewener merged 1 commit into
masterfrom
chore/lean-comments

Conversation

@HarryCordewener

Copy link
Copy Markdown
Member

Codebase-wide comment sweep — lean comments, only where they explain something non-obvious.

What changed

Removed 105 lines across 18 files, comments/blanks only — zero code changes:

  • Decorative // ── Section ── banner separators (MauiProgram, ConnectionKeepAliveService, the ViewModels, Web Program.cs, DI extensions, and test files' // ── Task N ── blocks).
  • A couple of pure restatements (// This is the main entry point…).

What was deliberately kept

Every "why" comment: telnet/keepalive/half-open rationale in TelnetConnection, the connectedDevice foreground-service + Name-lockstep notes, EF two-round-trip and FTS5 rationale, DI ordering, ANSI/MXP parsing quirks, // key into ISecretStore, NOT the secret, etc. Two whole slices (Core Connection/Sessions, Core Domain/Persistence/Platform/Diagnostics) were already lean and untouched.

Verification

  • Sanity-checked the diff: every removed line is a comment or blank; nothing added.
  • 263 unit tests pass (Core 199 / UI 47 / Data 17), unchanged.
  • Android head Release build re-run locally.

Done as six parallel per-directory passes with identical strict rules (cut decoration + restatement; bias to keep any rationale).

🤖 Generated with Claude Code

https://claude.ai/code/session_01HHCRc5CJ6595iMzEgYYdQp

Codebase-wide comment sweep: remove decorative `// ── Section ──` banner
separators and a couple of pure restatement comments ("// main entry point").
No code changed — comment/blank lines only; all "why" notes (protocol/RFC
rationale, keepalive/half-open tuning, foreground-service and EF/FTS5
constraints, DI ordering) are kept. 105 lines removed across 18 files.

Core Connection/Sessions and Domain/Persistence/Platform/Diagnostics were
already lean (no changes). 263 unit tests pass unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HHCRc5CJ6595iMzEgYYdQp
Copilot AI review requested due to automatic review settings July 6, 2026 19:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR performs a repo-wide cleanup pass to remove decorative comment banners and trivial restatements, keeping only comments that explain non-obvious “why” details. The changes are comment/blank-line only, with no functional code modifications.

Changes:

  • Removed decorative // ── ... ── section/task banners across app, core, data, web, and test code.
  • Removed a couple of pure restatement comments (e.g., “main entry point”).
  • Preserved rationale comments and explanatory documentation where they add non-obvious context.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/SharpClient.UI.Tests/TriggerEditorTests.cs Removed decorative section banner between test groups.
tests/SharpClient.Tests/Triggers/TriggerEngineTests.cs Removed decorative “New tests” banner.
tests/SharpClient.Tests/Sessions/SessionManagerTests.cs Removed decorative “New tests” banner.
tests/SharpClient.Tests/Sessions/RuntimeWiringTests.cs Removed decorative task banners separating integration test sections.
tests/SharpClient.Tests/Rendering/AnsiPaletteTests.cs Removed decorative “New tests” banner.
tests/SharpClient.Tests/Presentation/TriggerAliasEditorViewModelTests.cs Removed decorative section banner for character-scope tests.
tests/SharpClient.Data.Tests/WorldStoreTests.cs Removed decorative banners for Add/Get/Update/Delete/Helpers sections.
tests/SharpClient.Data.Tests/SessionHistoryTests.cs Removed decorative banners separating search behavior test sections.
src/SharpClient.Web/Program.cs Removed decorative DI section headers; kept meaningful diagnostics note.
src/SharpClient.UI/ServiceCollectionExtensions.cs Removed decorative headers within shared view model DI registration.
src/SharpClient.Data/WorldStore.cs Removed decorative “IWorldStore”/“Helpers” banners.
src/SharpClient.Data/SessionHistory.cs Removed decorative “ISessionHistory”/“Helpers” banners; kept XML docs.
src/SharpClient.Core/Presentation/TriggerAliasEditorViewModel.cs Removed decorative banners separating regions of the view model.
src/SharpClient.Core/Presentation/SettingsViewModel.cs Removed decorative section headers for lookup/state/constructor/properties/computed.
src/SharpClient.App/Platforms/MacCatalyst/Program.cs Removed restatement “main entry point” comment.
src/SharpClient.App/Platforms/iOS/Program.cs Removed restatement “main entry point” comment.
src/SharpClient.App/Platforms/Android/ConnectionKeepAliveService.cs Removed decorative banners while retaining detailed rationale comments.
src/SharpClient.App/MauiProgram.cs Removed decorative DI section headers while retaining explanatory comments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HarryCordewener
HarryCordewener merged commit cd5fb57 into master Jul 6, 2026
3 checks passed
@HarryCordewener
HarryCordewener deleted the chore/lean-comments branch July 6, 2026 19:10
Sign up for free to 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.

2 participants