AnalysisResult class

Result of running rules on multiple files.

Constructors

AnalysisResult({required Map<String, List<Violation>> violationsByFile, required int filesAnalyzed})
AnalysisResult.empty()
Creates an empty result.
factory

Properties

countByRule → Map<String, int>
Violations grouped by rule ID (lazily computed, cached).
latefinal
countBySeverity → Map<RuleSeverity, int>
Violations grouped by severity (lazily computed, cached).
latefinal
filesAnalyzed → int
Number of files analyzed.
final
filesWithViolations → Iterable<String>
Files with violations.
no setter
hasErrors → bool
Checks if there are any errors.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasViolations → bool
Checks if there are any violations.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalViolations → int
Total number of violations (lazily computed, cached).
latefinal
violationsByFile → Map<String, List<Violation>>
Violations grouped by file path.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
Summary string for display.
override

Operators

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