mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-20 16:24:32 +01:00
Added support for comparison of scans
This commit is contained in:
@@ -387,8 +387,10 @@ object OdcParser {
|
||||
|
||||
def parseDependencies(nodes: NodeSeq): Seq[Dependency] = nodes.map(parseDependency(_))
|
||||
|
||||
def parseXmlReport(data: Array[Byte]) = {
|
||||
val xml = SecureXml.loadString(new String(data, "utf-8"))
|
||||
def parseXmlReport(data: Array[Byte]): Analysis = parseXmlReport(new String(data, "utf-8"))
|
||||
|
||||
def parseXmlReport(xmlData: String): Analysis = {
|
||||
val xml = SecureXml.loadString(xmlData)
|
||||
Analysis(
|
||||
scanInfo = SerializableXml((xml \ "scanInfo").head),
|
||||
name = (xml \ "projectInfo" \ "name").text,
|
||||
|
||||
Reference in New Issue
Block a user