Expand description
Istanbul coverage input precedence shared by every surface that feeds CRAP
scoring: the explicit flag or tool parameter, then FALLOW_COVERAGE /
FALLOW_COVERAGE_ROOT, then health.coverage / health.coverageRoot from
the project config. Engine auto-detection of coverage/coverage-final.json
applies only when every layer leaves the coverage path unset.
resolve_coverage_inputs is pure: adapters read the environment and load
config at their own boundary and pass the layers in, so the CLI and the MCP
typed route share one order (#2359, #2368) without the API reading process
state. NAPI keeps explicit options and does not call it.
Structs§
- Coverage
Inputs - Istanbul coverage inputs from one resolution layer, or the resolved result.
Enums§
- Coverage
Input Error - Shape errors in resolved coverage inputs.
- Coverage
Input Source - The layer that supplied a resolved coverage input.
Functions§
- resolve_
coverage_ inputs - Resolve coverage inputs with the shared precedence:
explicit, thenenv, thenconfig_health. Each input resolves independently, so an explicit coverage path pairs with an environment or config root and vice versa.config_healthis thehealthsection of the project config when the caller loaded one; seeCoverageInputs::needs_config_layer.