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

quality/coverage-threshold/node

A coverage floor is enforced

Implements quality/coverage-threshold for node.

Severitywarning
Tiers1, 2
Stacksnode
Scopeeach
Kindoutcome
Sourcelibrary v0.4.0
Selected byfleetlint-recommended@v0.4.0

Requirement

Jest coverageThreshold, Vitest coverage.thresholds, or c8/nyc with check-coverage is configured, or a stack-neutral floor applies.

Why

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

Parameters

  • 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

Set coverage.thresholds in vitest.config (or coverageThreshold for Jest).

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


Generated by fleetlint docs from catalog v0.4.0.