fleetlint Policy for a fleet of repositories
v0.9
Getting started

quality/coverage-threshold/rust

A coverage floor is enforced

Implements quality/coverage-threshold for rust.

Severitywarning
Tiers1, 2
Stacksrust
Scopeeach
Kindoutcome
Sourcelibrary v0.6.0
Selected byfleetlint-recommended@v0.6.0

Requirement

cargo llvm-cov with --fail-under-lines (or another --fail-under-*) or cargo tarpaulin --fail-under runs in a recipe or a CI step, or tarpaulin.toml sets fail-under; or a stack-neutral floor applies.

Why

A coverage number nobody enforces drifts down one “quick fix” at a time.

Parameters

  • runners: [../Makefile ../justfile ../Justfile ../Taskfile.yml ../Taskfile.yaml ../../Makefile ../../justfile ../../Justfile ../../Taskfile.yml ../../Taskfile.yaml ../../../Makefile ../../../justfile ../../../Justfile ../../../Taskfile.yml ../../../Taskfile.yaml]
  • skip: ^\s*[@+-]*\s*(\{\{[^}]*\}\}\s*|\$[({][A-Za-z_]+[)}]\s*)?(#|//|echo\b|printf\b|(sudo\s+)?(go (install|get)|cargo b?install|pipx? install|pip3 install|python3? -m pip install|uv (tool |pip )?(install|add)|(npm|pnpm|yarn|bun) (i|install|add|global add)|gem install|bundle add|brew install|dotnet tool (install|update)|composer (global )?require|apt(-get)? install|curl|wget)\b[^;&]*$)

Fix

Run cargo llvm-cov --fail-under-lines 80 in the cover target.

Agent instruction: Add a threshold to the cover recipe using the stack profile’s tool (go: go-test-coverage or a cover script with a minimum; python: –cov-fail-under; node: coverageThreshold; rust: cargo llvm-cov –fail-under-lines; kotlin: kover verify).

A finding of this rule points at the file taskrunner.file != "" ? taskrunner.file : "Makefile" yields.

Sources


Generated by fleetlint docs from catalog v0.6.0.