You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove redundant and stale comments from the MCP package - #363
Remove 116 comments from the scanner source, published configuration declarations and Vitest configuration. Preserve the existing license notices, visibility annotations and public configuration guidance. Removing the comment from one single-statement conditional also lets it use the brace style required by the existing linter.
The cleanup removes 133 lines net across 15 existing files. npm run check and npm run build pass.
No actionable comments were generated in the recent review.
Walkthrough
This change adds a comment inventory and lint check, integrates the check into local and CI workflows, and removes explanatory comments from source files. It also adds decision records and changes debugger-detach handling so the tab remains in _knownTabs.
Adds comment inventory and base-revision comparison, tests the linter, and adds it to lint and CI checks. The workflow sets COMMENT_BASE_REF; documentation and the delete-comment skill describe its use. Vitest no longer excludes scripts/** from test discovery.
Removes explanatory comments from audit and measurement code. The baseline candidate-owner condition remains unchanged. ADR-005 records measurement, cleanup, and evidence rules.
Removes explanatory comments from configuration, adapter, recording, audit, and evaluation code. The debugger-detach handler no longer removes the tab from _knownTabs. ADR-006 records adapter decisions.
Utility comment and coverage-note cleanup src/utils/*, vitest.config.ts, docs/decisions/007-bounded-output-and-selection.md
Removes explanatory comments from utility code and coverage exclusions. ADR-007 records bounded-output and selection constraints.
sequenceDiagram
participant CI
participant NpmCheck
participant CommentLinter
participant Git
participant BabelParser
CI->>NpmCheck: Set COMMENT_BASE_REF and run checks
NpmCheck->>CommentLinter: Run lint-comments.mjs
CommentLinter->>Git: Verify base and identify changed files
CommentLinter->>BabelParser: Parse JavaScript and TypeScript comments
BabelParser->>CommentLinter: Return comment records
CommentLinter->>Git: Read base versions for comparison
This change removes prose comments, adds a lint check that blocks new ones, and records decisions in ADRs. No concrete runtime risk was established, so it looks safe to merge after the normal checks pass.
Pre-merge checks: 4
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "Remove redundant and stale comments from the MCP package" matches the main change. The changeset removes comments across the package, including config.d.ts, config.ts, browserModel.ts, seve…
Full details: Title check
Explanation
The title "Remove redundant and stale comments from the MCP package" matches the main change. The changeset removes comments across the package, including config.d.ts, config.ts, browserModel.ts, several tools, utils, and vitest.config.ts. The objectives describe the same removal of 116 runtime and configuration comments. The title is specific, concise, and accurate. One caveat: the changes cover more than the MCP package's runtime files, and the PR also adds a lint rule, skills, and ADRs. The title does not mention those parts, but it does not need to cover every detail.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
JustasMonkev
changed the title
Remove runtime prose comments and ratchet new comments in lint
Remove redundant and stale comments from the MCP package
Nov 21, 2026
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
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.
Remove 116 comments from the scanner source, published configuration declarations and Vitest configuration. Preserve the existing license notices, visibility annotations and public configuration guidance. Removing the comment from one single-statement conditional also lets it use the brace style required by the existing linter.
The cleanup removes 133 lines net across 15 existing files.
npm run checkandnpm run buildpass.