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 directoryconfig- Configuration options for the analysis
§Returns
Ok(CrossFileAnalyzer)- Analyzer populated with all fingerprintsErr(String)- Error message if analysis fails