Rule class abstract

One structural or semantic check.

M4 ships structural rules under lib/checks/structural/; M8 plugs in semantic rules under lib/checks/semantic/ against the same interface, so the runner doesn't grow new code for either.

Implementers

Constructors

Rule()
const

Properties

defaultSeverity IssueSeverity
Default severity. May be overridden per-issue.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
Stable rule identifier (snake_case). Used by the report formatter to group findings and by users to silence/ack via state file (post-v1.0).
no setter
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
run(DialectProject project) List<Issue>
Inspect project and return findings. May return an empty list. Should NOT throw — turn unexpected conditions into Issues so the report surfaces them rather than crashing.
toString() String
A string representation of this object.
inherited

Operators

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