RuleRegistry class

Deterministic registry mapping analyzer rule identifiers to RuleMetadata.

This is the single place where classification lives. To add a new rule: add one entry to _registry. To reclassify: change the entry here. Unknown rules are NOT guessed — lookup returns null for any unregistered rule.

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

registeredRules Iterable<String>
Returns all registered rules (for testing / introspection).
no setter

Static Methods

lookup(String rule) RuleMetadata?
Returns the RuleMetadata for rule, or null if the rule is not registered. Unknown rules are never guessed.