Skip to main content

run_dead_code

Function run_dead_code 

Source
pub fn run_dead_code(
    options: &DeadCodeOptions,
) -> Result<DeadCodeProgrammaticOutput, ProgrammaticError>
Expand description

Run dead-code analysis and return typed API output before serialization.

ยงErrors

Returns a structured programmatic error for unsupported options, invalid options, config load failures, analysis failures, or git changed-file failures. When the environment or typeAware.enabled turns on type-aware analysis that the options leave off, it returns super::TYPE_AWARE_CONFIG_UNSUPPORTED.