Skip to main content

analyze_retaining_modules

Function analyze_retaining_modules 

Source
pub fn analyze_retaining_modules(
    config: &ResolvedConfig,
    need_complexity: bool,
    retain_graph: bool,
) -> Result<AnalysisOutput, FallowError>
Expand description

Run the full analysis pipeline, retaining parsed modules and discovered files.

Used by the combined command to share a single parse across dead-code and health. When need_complexity is true, the ComplexityVisitor runs during parsing so the returned modules contain per-function complexity data.

ยงErrors

Returns an error if file discovery, parsing, or analysis fails.