Repository navigation
comments: drop comments in tools/docs and tools/ci - #14760
Merged
Merged
Conversation
Removes line, block and doc comments from the Rust, Go, C, Starlark, Python and shell sources under tools/docs/ and tools/ci/. Keeps the rustdoc on public items of the crates the user API site renders (PUBLIC_RUST_CRATES), the //! summary lines workflow_pins_test reads, and tool directives (gazelle, keep, noqa, shellcheck, shebangs). Lowers the zero_compat allowlist count for support_matrix/src/lib.rs, which lost one compat word with its comments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hxcqqAoDeuSr83mscS
Collaborator
Author
|
Review: approve Scripted scan of all 100 files: every removed line is a comment, except tools/ci/verbatim_prefix_test.rs:15. There an array lost its inner comments and was collapsed to one line with the same two elements. No directives, clap help, doctests, in-string text, fixtures or testdata touched. No removed rustdoc on public items of PUBLIC_RUST_CRATES (convert.rs and types.rs are private modules). workflow_pins_test summary lines are kept. tools/ci/zero_compat_allowlist.txt:128: 2 -> 1 matches a recount (only 🤖 Generated with Claude Code |
This was referenced Nov 23, 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of #14766
Scope:
tools/docs/andtools/ci/(Rust, Go, C, Starlark/BUILD, Python, shell). Fixtures, testdata, extractor test inputs, string literals and files with open PRs are untouched.Comment lines: 2231 before, 259 after.
Kept:
PUBLIC_RUST_CRATES(components, rust and typescript extract, site aggregate/browser/build/check); the user API site renders it//!line oftools/ci/input_validationandtools/ci/docs_scope;workflow_pins_testreads it as the script summary# gazelle:,# keep,# noqa,# shellcheck, shebangsAlso lowers the
zero_compat_allowlist.txtcount fortools/docs/support_matrix/src/lib.rsfrom 2 to 1, because a removed comment held one of the two compat words.Tests (
tools/dx test //tools/ci/...,tools/dx test //tools/docs/...plus the four named guards): every failure is in a file this PR does not touch, or also fails on main (site_shard_test,languages_test,dx_docs_typescript_extract_test).🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hxcqqAoDeuSr83mscS