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

quality/coverage-threshold/hugo

A coverage floor is enforced

Implements quality/coverage-threshold for hugo.

Severitywarning
Tiers1, 2
Stackshugo
Scopeeach
Kindexpr
Sourcelibrary v0.2.0
Selected byfleetlint-recommended@v0.2.0

Requirement

A Hugo site has no tests to measure coverage of; scripts in the site are checked as their own stack.

Why

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

Applies when

false

Check

true

Fix

Make make cover fail below the floor (diff-cover –fail-under=80 is the stack-neutral option).

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).

See: https://fleetlint.org/baseline/#tests, https://fleetlint.org/stacks/#hugo--static-sites


Generated by fleetlint docs from catalog v0.2.0.