Skip to main content

analyze_project

Function analyze_project 

Source
pub fn analyze_project<P: AsRef<Path>>(
    root: P,
    config: CrossFileConfig,
) -> Result<CrossFileAnalyzer, String>
Expand description

Analyze a project directory for cross-file code duplication

This function walks through all .rs files in the given directory, extracts function fingerprints, and identifies duplicate patterns.

§Arguments

  • root - Path to the project root directory
  • config - Configuration options for the analysis

§Returns

  • Ok(CrossFileAnalyzer) - Analyzer populated with all fingerprints
  • Err(String) - Error message if analysis fails