Skip to content

docs(ui): every private component says what its parameters hold - #726

Draft
PiquelChips wants to merge 1 commit into
mainfrom
chore/private-docs-ui
Draft

PiquelChips wants to merge 1 commit into
mainfrom
chore/private-docs-ui

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

What and why

Turns on clippy::missing_docs_in_private_items for sourceorigin-ui with a #![warn] in its lib.rs; the next PR turns it on for the workspace. All 501 sites were the same thing: the parameters of private #[component]s, which #[component] turns into struct fields that missing_docs skips and this lint does not. Each parameter now has a one-line doc comment saying what it holds (what goes in), as the component's own doc comment already uses its name. Single-line signatures became one parameter per line to carry their docs, which accounts for the deleted lines.

No #[expect] was needed, and no code changed besides the doc comments and that line splitting.

Testing

cargo clippy -p sourceorigin-ui --all-targets -- -D warnings passes (also with the crate alone, as just rust lint runs it), and the crate's tests pass.

Note

Written by Claude Sonnet 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • 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.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

1 participant