Class ScanResultUtilsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • 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.