Package org.ossreviewtoolkit.model.utils
Class ScanResultUtilsKt
-
- All Implemented Interfaces:
public final class ScanResultUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static List<ScanResult>mergeScanResultsByScanner(Map<String, List<ScanResult>> scanResultsByPath, KnownProvenance packageProvenance)Merge the nested ScanResults into one ScanResult per used scanner. -
-
Method Detail
-
mergeScanResultsByScanner
final static List<ScanResult> mergeScanResultsByScanner(Map<String, List<ScanResult>> scanResultsByPath, KnownProvenance packageProvenance)
Merge the nested ScanResults into one ScanResult per used scanner. The entry for the empty string in scanResultsByPath holds the scan results for the root provenance of the package. All further entries in scanResultsByPath hold the scan results corresponding to the path the (sub-)repository appears in the source tree. This maps the given scanResultsByPath to the format currently used by OrtResult. When merging multiple ScanSummarys for a particular scanner the earliest start time and lasted end time will be used as the new values for the respective scanner. The given packageProvenance is used as provenance for all returned merged scan results.
-
-
-
-