Skip to content

comments: drop comments in tools/docs and tools/ci - #14760

Merged
TrapsterDK merged 1 commit into
mainfrom
comments-tools-docs-ci
Nov 23, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
comments-tools-docs-ci

Conversation

@TrapsterDK

@TrapsterDK TrapsterDK commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #14766

Scope: tools/docs/ and tools/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:

  • rustdoc on public items of the crates in PUBLIC_RUST_CRATES (components, rust and typescript extract, site aggregate/browser/build/check); the user API site renders it
  • the first //! line of tools/ci/input_validation and tools/ci/docs_scope; workflow_pins_test reads it as the script summary
  • directives: # gazelle:, # keep, # noqa, # shellcheck, shebangs

Also lowers the zero_compat_allowlist.txt count for tools/docs/support_matrix/src/lib.rs from 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

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
@TrapsterDK

Copy link
Copy Markdown
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 api_compat_tools remains). No other allowlisted counts changed.

🤖 Generated with Claude Code

@TrapsterDK
TrapsterDK merged commit 6f98652 into main Nov 23, 2026
23 of 33 checks passed
@TrapsterDK
TrapsterDK deleted the comments-tools-docs-ci branch November 23, 2026 16:48
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.

1 participant