Skip to main content

validate_complexity_options

Function validate_complexity_options 

Source
pub fn validate_complexity_options(
    options: &ComplexityOptions,
) -> Result<(), ProgrammaticError>
Expand description

Validate programmatic complexity / health inputs before invoking a concrete runner.

These option contracts belong to the API boundary because NAPI and future Rust embedders construct the same ComplexityOptions type.

ยงErrors

Returns a structured programmatic error when a coverage path does not exist or when coverage_root is not an absolute prefix from the coverage data.