Skip to main content

prune_dead_code_baseline

Function prune_dead_code_baseline 

Source
pub fn prune_dead_code_baseline(
    content: &str,
    results: &AnalysisResults,
    root: &Path,
    identity: &SemanticAnalysisIdentity,
) -> Result<BaselinePrune, BaselinePruneRefusal>
Expand description

Prune a dead-code baseline (the format fallow dead-code --save-baseline writes) against the results of a whole-project run.

ยงErrors

Returns BaselinePruneRefusal when the file is not a canonical dead-code baseline of the same analysis identity.