JsonReporter class
Writes audit results as a JSON document, for machine consumption (CI dashboards, custom tooling, scripts) rather than human reading.
Constructors
- JsonReporter()
-
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
-
generateJson(
List< AuditRunResult> results, {required ProjectContext context}) → 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.json'}) → File
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited