cost property
The estimated execution cost of this rule.
Override to specify the cost level for your rule:
- RuleCost.trivial: Very fast (simple pattern matching)
- RuleCost.medium: Medium (traverse part of AST) - default
- RuleCost.extreme: Very slow (cross-file analysis simulation)
Rules are sorted by cost before execution, so fast rules run first. Default: RuleCost.medium
Implementation
@override
RuleCost get cost => RuleCost.medium;