AuditRule class
One heuristic: if triggerPattern matches a file's source, the file
is expected to also match requiredPattern somewhere — if it
doesn't, that's a violation. null requiredPattern means any
triggerPattern match is itself always a violation (no "opt out"
companion pattern makes sense for that rule).
Constructors
- AuditRule({required AuditRuleId id, required AuditSeverity severity, required String description, required RegExp triggerPattern, RegExp? requiredPattern})
-
const
Properties
- description → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → AuditRuleId
-
final
- requiredPattern → RegExp?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → AuditSeverity
-
final
- triggerPattern → RegExp
-
final
Methods
-
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