LinterRule class abstract
Encapsulates a single linter rule.
- Annotations
-
- @immutable
Constructors
- LinterRule(LinterType type, String title)
-
Constructs a new linter rule.
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
- title → String
-
Human readable title of this rule.
final
- type → LinterType
-
Severity of issues detected by this rule.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
Analyzer analyzer, Parser parser, LinterCallback callback) → void -
Executes this rule using a provided
analyzer
on aparser
. Expected to callcallback
zero or more times as issues are detected. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited