HtmlReporter class
Generates a self-contained HTML security & dependency audit report,
complete with a severity-distribution chart. The file has no external
dependencies (no CDN scripts/styles) so it renders correctly when opened
directly from disk (file://).
Constructors
- HtmlReporter()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generateHtml(
List< AuditRunResult> results, {required ProjectContext context}) → String - Builds the full HTML document as a string.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writeReport(
List< AuditRunResult> results, {required ProjectContext context, String outputPath = 'audit_report.html'}) → File -
Builds the HTML report and writes it to
outputPath, returning the written File.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited