mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-27 19:42:04 +01:00
Give more information when comparing commits.
This commit is contained in:
@@ -412,7 +412,7 @@ class Statistics @Inject()(
|
|||||||
def compare[T](f: Result => Set[T]) = new SetDiff(f(selection.result), f(adHocReports))
|
def compare[T](f: Result => Set[T]) = new SetDiff(f(selection.result), f(adHocReports))
|
||||||
Ok(Json.obj(
|
Ok(Json.obj(
|
||||||
"vulnerabilities"->showDiff(compare(extractVulnerabilities)),
|
"vulnerabilities"->showDiff(compare(extractVulnerabilities)),
|
||||||
"dependencies"->showDiff(compare(_.groupedDependencies.map(GroupedDependencyIdentifier.fromGroupedDependency).toSet))
|
"dependencies"->showDiff(compare(_.groupedDependencies.map(GroupedDependencyDetailedIdentifier.fromGroupedDependency).toSet))
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user