IgnoreConfig class

Suppression rules loaded from a project's .flutter_auditor_ignore.yaml.

A finding is suppressed if it matches any rule: its producing audit's auditIds, its own SecurityIssue.file against a glob in filePatterns (matched relative to the project root), or its own SecurityIssue.id in issueIds.

Constructors

IgnoreConfig({Set<String> auditIds = const {}, Set<String> issueIds = const {}, List<String> filePatterns = const []})
const

Properties

auditIds Set<String>
final
filePatterns List<String>
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
no setter
issueIds Set<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(List<AuditRunResult> results, ProjectContext context) → (List<AuditRunResult>, int)
Returns a copy of results with every suppressed issue removed, along with how many issues were suppressed in total. An audit whose findings are all suppressed is still reported (with an empty issue list), so it shows up as passed rather than silently disappearing.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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