RuleRunner class

Executes style rules on compilation units.

Coordinates rule execution, violation collection, and file filtering.

Constructors

RuleRunner({required RuleRegistry registry, List<String> excludePatterns = const []})
Creates a rule runner with the given registry.

Properties

excludePatterns List<String>
File patterns to exclude from analysis.
final
hashCode int
The hash code for this object.
no setterinherited
registry RuleRegistry
Rule registry containing all registered rules.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

analyze(CompilationUnit unit, {LineInfo? lineInfo, String? filePath}) List<Violation>
Runs all enabled rules on a compilation unit.
analyzeByCategory(RuleCategory category, CompilationUnit unit, {LineInfo? lineInfo, String? filePath}) List<Violation>
Runs rules by category.
analyzeWithRule(String ruleId, CompilationUnit unit, {LineInfo? lineInfo, String? filePath}) List<Violation>
Runs a specific rule by ID.
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