OkfReport class final

The immutable findings produced while loading and validating a bundle.

A report holds its findings in one canonical order (compareFindings) regardless of which producers contributed them, so every adapter that projects the same findings emits the same sequence. Merging reports is constructing one from their concatenated findings.

Constructors

OkfReport({Iterable<OkfFinding> findings = const <OkfFinding>[]})
Creates the shared report projected by every validation adapter.

Properties

findings List<OkfFinding>
Every finding in canonical order.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Projects this report as a JSON-compatible object.
toString() String
A string representation of this object.
inherited
toText() String
Projects this report as deterministic, line-oriented text.
toTextLines() Iterable<String>
The text projection one finding per line, for adapters that write lines individually.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

compareFindings(OkfFinding left, OkfFinding right) int
The canonical ordering of report findings: path, line, column, ID, severity, message. Findings without a location sort first.