Rules / TAU-D001

Documented public API

decided by Rustc kernel warn core warn edge –
Applies to tests: no Exceptions: #[expect] + reason

Why

Undocumented public items and error cases are where callers, human or agent, guess wrong.

Fix

Add a doc comment; document each error variant a function can return under # Errors.

What it checks

Lints: missing_docs, clippy::missing_errors_doc, clippy::missing_panics_doc

In the terminal

cargo tauten explain TAU-D001

$ cargo tauten explain TAU-D001

TAU-D001: Documented public API Why: Undocumented public items and error cases are where callers, human or agent, guess wrong. Fix: Add a doc comment; document each error variant a function can return under `# Errors`. Decided by: RustcDecides: Public items are documented, with `# Errors`/`# Panics` sections where they apply.Sees: resolved; complete: yesDoes not see: Code expanded from macros defined in other crates (clippy skips it); code disabled by `cfg`; build scripts.Applies to tests: noExceptions allowed: with #[expect(.., reason)]  kernel warn  core warn  edge -Lints: missing_docs, clippy::missing_errors_doc, clippy::missing_panics_doc