diff --git a/depdive/src/lib.rs b/depdive/src/lib.rs index 4092303..ac1d944 100644 --- a/depdive/src/lib.rs +++ b/depdive/src/lib.rs @@ -87,12 +87,12 @@ impl DependencyAnalyzer { pub struct DependencyGraphAnalyzer; impl DependencyGraphAnalyzer { - pub fn get_code_metrics_from_path(path: &Path, only_direct: bool) -> Result { + pub fn get_code_metrics_in_json_from_path(path: &Path, only_direct: bool) -> Result { let graph = MetadataCommand::new().current_dir(path).build_graph()?; Self::get_code_metrics(&graph, only_direct) } - fn get_code_metrics(graph: &PackageGraph, only_direct: bool) -> Result { + fn get_code_metrics_in_json(graph: &PackageGraph, only_direct: bool) -> Result { let code_reports = code::CodeAnalyzer::new(); let reports = code_reports.analyze_code(graph, only_direct)?; let json_output = serde_json::to_string(&reports)?;