RuleMetadata class

Deterministic metadata for a single analyzer rule.

Instances are immutable and live only in RuleRegistry. Do not extend or modify at runtime — this is the source of truth for the current classification. To reclassify a rule, update RuleRegistry directly.

Constructors

RuleMetadata({required String rule, required IssuePriority priority, required IssueCategory category, required String description})
const

Properties

category IssueCategory
The nature of the problem this rule represents.
final
description String
A concise, developer-facing description of what the rule detects.
final
hashCode int
The hash code for this object.
no setterinherited
priority IssuePriority
How urgently the developer should address issues of this rule.
final
rule String
The exact analyzer rule identifier (e.g. 'undefined_method').
final
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.
override

Operators

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