Skip to content

refactor(acp): audit Clippy exceptions and enforce API documentation - #517

Merged
benbrandt merged 3 commits into
mainfrom
benbrandt/rust-lint-audit
Nov 21, 2026
Merged

benbrandt merged 3 commits into
mainfrom
benbrandt/rust-lint-audit

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

  • Remove stale Clippy suppressions, fix warnings directly where possible, and keep checked expectations for intentional exceptions. The remaining source allows are on two public enums whose size warnings depend on the build. Both have next-major TODOs.
  • Keep the v2 initialization outcome small by boxing the selected response, including the v1 fallback. The stable v1 API and the wire response are unchanged.
  • Enforce missing_docs for every workspace crate and enable seven previously disabled Clippy lints, including missing_errors_doc. Document the public error paths and test fixtures; leave the high-volume needless_pass_by_value and too_many_lines exceptions at workspace scope.

Companion: ACP schema lint audit. This PR builds independently against the published schema 1.21.0 on main; it does not change the dependency pin.

Verification

  • just test: 1,613 passed, 0 failed, 61 ignored across the recipe's runs.
  • Formatting, spelling, native Clippy and all three CI WebAssembly Clippy targets passed. Checked Rust 1.88 on native and the CI WebAssembly feature combinations.
  • Built all-features and WASI rustdoc with warnings denied, and built the SDK book.
  • Also compiled the full SDK workspace, including examples and test targets, against the companion schema branch with Clippy warnings denied.

@benbrandt
benbrandt enabled auto-merge (squash) November 21, 2026 13:20
@benbrandt
benbrandt merged commit d9d2cae into main Nov 21, 2026
14 checks passed
@benbrandt
benbrandt deleted the benbrandt/rust-lint-audit branch November 21, 2026 13:24
@acp-release-bot acp-release-bot Bot mentioned this pull request Nov 21, 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