Rules / TAU-R001

Baseline must be tight

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

Why

The baseline records existing violations so a project can adopt the profile gradually. It may only shrink: once a violation is fixed, its slot must be removed, or a new violation could silently take it.

Fix

Run cargo tauten baseline and commit the smaller baseline file.

In the terminal

cargo tauten explain TAU-R001

$ cargo tauten explain TAU-R001

TAU-R001: Baseline must be tight Why: The baseline records existing violations so a project can adopt the profile gradually. It may only shrink: once a violation is fixed, its slot must be removed, or a new violation could silently take it. Fix: Run `cargo tauten baseline` and commit the smaller baseline file. Decided by: TautenDecides: The lint baseline accepts no more findings than exist.Sees: record; complete: yesDoes not see: The committed baseline itself (its diff is reviewed).Applies to tests: yesExceptions allowed: with #[expect(.., reason)]  kernel deny  core deny  edge deny