Skip to content

docs: enable missing_docs + document all public APIs in buzz-persona - #3500

Closed
jewoos2921 wants to merge 1 commit into
block:mainfrom
jewoos2921:docs/buzz-persona-missing-docs
Closed

docs: enable missing_docs + document all public APIs in buzz-persona#3500
jewoos2921 wants to merge 1 commit into
block:mainfrom
jewoos2921:docs/buzz-persona-missing-docs

Conversation

@jewoos2921

Copy link
Copy Markdown

Summary

Completes the workspace-wide missing_docs effort by enabling it in buzz-persona — the last crate that lacked it.

This follows #3469, which added missing_docs to buzz-cli, buzz-acp, buzz-dev-mcp, and buzz-ws-client. With this PR, every workspace crate now enforces #![warn(missing_docs)].

Changes

~130 public items documented across 7 files (170 insertions, 11 deletions):

File Items documented
lib.rs Crate-level //! doc + 6 module docs + #![warn(missing_docs)]
manifest.rs ManifestError enum + 3 variants, BehavioralDefaults/PackManifest fields
merge.rs TriggersData, HooksData, ResolvedConfig structs + all fields
pack.rs PackError enum + 8 variants (incl. struct-variant fields), LoadedPack/LoadedPersona/PackManifestData fields
persona.rs PersonaError enum + 7 variants, McpServerConfig/Hooks fields
resolve.rs ResolvedPersona (~17 fields), ResolvedMcpServer/Hooks/Triggers/Pack
validate.rs ValidationDiagnostic enum + variants, ValidationReport methods

The 11 deletions are mechanical /////! conversions required by clippy's empty_line_after_doc_comments lint (a module-level doc block was misattached as an outer doc comment on the first struct).

Verification

  • RUSTDOCFLAGS="-W missing_docs" cargo doc -p buzz-persona — zero missing_docs warnings
  • cargo clippy -p buzz-persona -- -D warnings — clean
  • cargo fmt --check -p buzz-persona — clean
  • cargo test -p buzz-persona — 13 passed, 0 failed

Add #![warn(missing_docs)] and crate-level //! docs to buzz-persona,
clearing all ~130 missing_docs warnings. This is the last crate in the
workspace to receive the missing_docs treatment, completing the effort
started in #3469.

Documents ~130 public items across 7 files:
- lib.rs: crate doc + 6 module docs
- manifest.rs: ManifestError enum + variants, BehavioralDefaults/PackManifest fields
- merge.rs: TriggersData, HooksData, ResolvedConfig structs + fields
  (also fixed a module-level doc comment misattached as outer doc)
- pack.rs: PackError enum + 8 variants, LoadedPack/LoadedPersona/PackManifestData fields
- persona.rs: PersonaError enum + variants, McpServerConfig/Hooks fields
- resolve.rs: ResolvedPersona (~17 fields), ResolvedMcpServer/Hooks/Triggers/Pack
- validate.rs: ValidationDiagnostic enum + variants, ValidationReport methods

All changes are doc-comment-only (170 insertions, 11 deletions — the
deletions are mechanical /// → //! conversions required by clippy).
@jewoos2921
jewoos2921 requested a review from a team as a code owner July 29, 2026 09:23
@jewoos2921 jewoos2921 closed this by deleting the head repository Jul 29, 2026
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