diff --git a/app/assets/css/main.css b/app/assets/css/main.css index 60a8718..7f94457 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -188,12 +188,12 @@ h3.library-identification{ white-space:nowrap; max-width:none; } -.dependencies-table .severity .score{ +.dependencies-table .severity .score-vulnerability{ font-weight: bolder; font-size: larger; color: red; } -.dependencies-table .severity .score:hover{ +.dependencies-table .severity .score-vulnerability:hover{ color: rgb(192, 0, 0); } .dependencies-table .identifiers .tooltip-inner { diff --git a/app/com/ysoft/odc/OdcParser.scala b/app/com/ysoft/odc/OdcParser.scala index e067370..e5bf4eb 100644 --- a/app/com/ysoft/odc/OdcParser.scala +++ b/app/com/ysoft/odc/OdcParser.scala @@ -73,7 +73,6 @@ final case class GroupedDependency(dependencies: Map[Dependency, Set[ReportInfo] def parsedDescriptions: Seq[Seq[Seq[String]]] = descriptions.toSeq.sorted.map(_.trim.split("\n\n").filterNot(_=="").toSeq.map(_.split("\n").toSeq)) def isVulnerable: Boolean = vulnerabilities.nonEmpty def maxCvssScore = (Seq(None) ++ vulnerabilities.map(_.cvssScore)).max - def ysdssScore = maxCvssScore.map(_ * projects.size) def descriptions = dependencies.keySet.map(_.description) def projects = dependencies.values.flatten.toSet def fileNames = dependencies.keySet.map(_.fileName) @@ -153,7 +152,6 @@ object RichBoolean{ final case class Vulnerability(name: String, cweOption: Option[CWE], cvss: CvssRating, description: String, vulnerableSoftware: Seq[VulnerableSoftware], references: Seq[Reference]){ import RichBoolean.toRichBoolean def cvssScore = cvss.score - def ysvssScore(affectedDeps: Set[GroupedDependency]) = cvssScore.map(_ * affectedDeps.flatMap(_.projects).toSet.size) def likelyMatchesOnlyWithoutVersion(dependencyIdentifiers: Set[Identifier]) = dependencyIdentifiers.forall { id => // Rather a quick hack. Maybe it would be better to do this check in ODC. val versionlessCpeIdentifierOption = id.toCpeIdentifierOption.map(_.split(':').take(4).mkString(":")) diff --git a/app/views/dependencyList.scala.html b/app/views/dependencyList.scala.html index d660b42..7c72e3c 100644 --- a/app/views/dependencyList.scala.html +++ b/app/views/dependencyList.scala.html @@ -16,9 +16,9 @@