Repository navigation
chore: strip comments from code and config - #504
Conversation
Generated by a syntax-aware stripper; only clap help doc comments, lint: allow(sleep) markers, and shebangs remain.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Change
Removes every comment from the repository's code and config. Comments had been leading agents to write hacks and explain them in prose instead of fixing the cause.
AGENTS.mdalready forbids new comments; this clears out the old ones.//,///and//!removed from every tracked.rsfile, about 17.7k lines (the repo has no/* */blocks). TOML, workflow YAML, shell and Python scripts lose their#comments.src/cli.rsandxtask/src/*.rs, because they become--helptext;// lint: allow(sleep)markers, whichxtask/src/lint.rsreads;argparseuses__doc__).doctestgate is gone fromcargo xtask check.e4490327is the unedited output of a syntax-aware stripper followed bycargo fmt --all. It understands escapes, raw strings, byte strings, char literals vs lifetimes, and nested block comments. The three commits after it are hand edits:ifwhose whole body was a comment;xtask/src/legacy-sleeps.txtto the new line numbers.The 31 hacks those comments explained are filed as ENG-1112 to ENG-1142 under ENG-1111.
Verification
cargo xtask check: passed on0a6281c2(full workspace, 86 s).origin/main(a41ba3ff), thencargo fmt --all, reproducese4490327byte for byte. Running it again changes 0 files..rsfiles is unchanged, except the deleted"doctest"gate. Apart from comments and whitespace, the only token changes are reflows bycargo fmt.--helpand-hfor everyqqsubcommand (83 sections) and everyxtasksubcommand, including hidden perf workers (43 sections), are identical before and after. The only difference is the commit hash inqq --version.Known impact
cargo fmt --all.# shellcheck disable=SC1091directive went with the other comments. Nothing in CI runs shellcheck.