mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-24 10:02:00 +01:00
Initial commit
This commit is contained in:
10
app/views/html/SuppressionXml.scala
Normal file
10
app/views/html/SuppressionXml.scala
Normal file
@@ -0,0 +1,10 @@
|
||||
package views.html
|
||||
|
||||
import com.ysoft.odc.{GroupedDependency, Vulnerability}
|
||||
object SuppressionXml {
|
||||
|
||||
def forCpe(dep: GroupedDependency, cpe: String) = suppressionXmlPre(dep, <cpe>{cpe}</cpe>)
|
||||
|
||||
def forVuln(dep: GroupedDependency, vuln: Vulnerability) = suppressionXmlPre(dep, <cve>{vuln.name}</cve>)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user