mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-25 02:21:52 +01:00
Drastically reduced memory usage, mostly using deduplication.
This commit is contained in:
@@ -12,10 +12,13 @@ object WarningSeverity extends Enumeration {
|
||||
}
|
||||
|
||||
sealed abstract class Warning {
|
||||
def optimize: Warning
|
||||
def html: Html
|
||||
def id: String
|
||||
def allowSnoozes = true
|
||||
def severity: WarningSeverity
|
||||
}
|
||||
|
||||
final case class IdentifiedWarning(id: String, html: Html, severity: WarningSeverity) extends Warning
|
||||
final case class IdentifiedWarning(id: String, html: Html, severity: WarningSeverity) extends Warning{
|
||||
def optimize = copy(html = Html(html.body))
|
||||
}
|
||||
Reference in New Issue
Block a user