Repository navigation
refactor(cli): remove and correct stale comments - #185
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 38 minutes. View limit details
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. Comment |
|
The latest Docker Doctor scan for this pull request. Learn more about Docker Doctor.
Score: 84 / 100 · 3 issues
Scanned by Docker Doctor for commit |
commit: |
Nineteen comments in packages/docker-doctor/src narrated the next line
("Load config first", "Group by file", "Default scan command") or kept
history the code no longer shows. Two were wrong. "Calculate scores per
category once" sits above a count of issues, and "Collect all
diagnostics" sits above the map of file contents.
sanitize.ts said a filename can hold newlines and ANSI escapes on every platform we run on. Windows forbids control characters in file names, so the comment now names Linux and macOS. skill-install.ts said every caller treats a null result as "skill not installed", never as a failure. The install command reports it as a failure and exits 1, so that clause goes.
1b29b26 to
8db14c5
Compare
Description
The same comment audit for the CLI package. This PR removes 19 comments that narrate the next line and corrects two that state something false. No code line changes.
Two commits:
sanitize.tssaid a filename can hold newlines and ANSI escapes "on every platform we run on". Windows forbids control characters in file names, so the comment now names Linux and macOS.skill-install.tssaid callers treat a null result as "skill not installed", never as a failure.docker-doctor installprints "Failed to install the skill." and exits 1, so that clause goes.Kept: comments about behavior outside our code (Node refusing to spawn
.cmdshims on Windows,.gitbeing a file in worktrees, a JSON string being a valid YAML scalar,process.exitCodefor piped output) and the consent note onAGENT_AUTO_FLAGS. The comments inside the prompts, the spinner and the score animation are left to the companion refactor that names the terminal escape sequences.Related Issues
N/A. Found by a comment audit of the repository.
Checklist
Screenshots (if applicable)
N/A
Additional Notes
ultracite check, typecheck and the generated docs are clean.skip-changeset: nothing user-visible changes.