AuditBaseline class
A parsed baseline file — every AuditViolation this baseline suppresses is dropped from a scan's reported results, but never silently: AuditSuppression.reason stays readable in the baseline source file itself as the paper trail for "why this one's accepted".
Constructors
-
AuditBaseline(List<
AuditSuppression> suppressions) -
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
-
suppressions
→ List<
AuditSuppression> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
suppresses(
AuditViolation violation) → bool -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
List< Object?> json) → AuditBaseline -
Parses a JSON
Listof{file, rule, reason}maps — an entry missing any of the 3 fields, with an emptyreason, or naming an unknownruleid is silently dropped (never throws): a malformed baseline should read as "fewer suppressions than intended," which makes the scan MORE strict, never a way to accidentally suppress more than the file actually says.
Constants
- empty → const AuditBaseline