Rules / TAU-S001

No stubs or debug leftovers

decided by Clippy kernel deny core deny edge deny
Applies to tests: yes Exceptions: never

Why

Agents leave todo!() and unimplemented!() behind and report the task done.

Fix

Implement the branch, or return a typed Unsupported error if the case is deliberately out of scope.

What it checks

Lints: clippy::todo, clippy::unimplemented, clippy::dbg_macro

Seen in fixtures

rej-stub/src/lib.rs core

//! A stub left behind. /// Compute a fee.#[must_use]pub fn fee(_amount: u64) -> u64 {    todo!()}

$ cargo tauten check

error[TAU-S001]: `todo` should not be present in production code  --> rej-stub/src/lib.rs:6:5 (core crate `rej-stub`)  = rule: No stubs or debug leftovers (decided by Clippy)  = fix: Implement the branch, or return a typed `Unsupported` error if the case is deliberately out of scope.
Fixture rej-stub (core) expects TAU-S001. Output captured at 0200db3.

In the terminal

cargo tauten explain TAU-S001

$ cargo tauten explain TAU-S001

TAU-S001: No stubs or debug leftovers Why: Agents leave `todo!()` and `unimplemented!()` behind and report the task done. Fix: Implement the branch, or return a typed `Unsupported` error if the case is deliberately out of scope. Decided by: ClippyDecides: No `todo!`, `unimplemented!` or `dbg!` in linted code.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: yesExceptions allowed: never  kernel deny  core deny  edge denyLints: clippy::todo, clippy::unimplemented, clippy::dbg_macro