IssuePrioritizer class
Applies RuleRegistry metadata to a FlutterAnalysisResult to produce a prioritized, sorted list of PrioritizedGroup objects.
Responsibilities:
- Groups all issues by rule (across all severities).
- Looks up metadata in RuleRegistry.
- Sorts by IssuePriority.sortOrder first, then occurrence count descending.
- Does NOT modify the parsed FlutterAnalysisResult or any FlutterIssue.
Constructors
- IssuePrioritizer()
-
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
Methods
-
countByPriority(
List< PrioritizedGroup> groups) → Map<IssuePriority, int> - Returns a map of priority → total occurrence count (sum of all issues whose rule maps to that priority).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prioritize(
FlutterAnalysisResult result) → List< PrioritizedGroup> -
Returns a sorted list of PrioritizedGroup for all rules found in
result. -
topProblems(
List< PrioritizedGroup> sorted, {int limit = 10}) → List<PrioritizedGroup> -
Returns the top
limitrules from the sorted list (default 10). Ordering already respects priority-before-count. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited