quality/coverage-threshold/hugo
A coverage floor is enforced
Implements quality/coverage-threshold for hugo.
| Severity | warning |
| Tiers | 1, 2 |
| Stacks | hugo |
| Scope | each |
| Kind | expr |
| Source | library v0.4.0 |
| Selected by | fleetlint-recommended@v0.4.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
falseCheck
trueFix
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).
Sources
- https://fleetlint.org/baseline/#tests (convention)
- https://fleetlint.org/stacks/#hugo–static-sites (convention)
Generated by fleetlint docs from catalog v0.4.0.