pub fn analyze_retaining_modules(
config: &ResolvedConfig,
need_complexity: bool,
retain_graph: bool,
) -> Result<AnalysisOutput, FallowError>๐Deprecated since 2.76.0:
fallow_core is internal; use fallow_cli::programmatic::detect_dead_code instead. NOTE: combined-mode module retention is not exposed in the programmatic surface today. See docs/fallow-core-migration.md and ADR-008.
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.