AggregatedReport class
Comprehensive aggregated report for project-level metrics.
Generated by MetricsAggregator.generateReport, this class provides a complete summary of code quality across the analyzed codebase.
Key properties:
- healthScore: Overall project health (0-100)
- violations: Functions that exceed thresholds
- worstFunctions: Top 10 functions with lowest MI
Example:
final report = aggregator.generateReport();
print('Health: ${report.healthScore}');
if (report.hasViolations) {
for (final v in report.violations) {
print('Fix: ${v.qualifiedName}');
}
}
Constructors
-
AggregatedReport({required ProjectMetrics projectMetrics, required RatingDistribution ratingDistribution, required List<
FunctionMetrics> violations, required List<FunctionMetrics> worstFunctions, required List<FileMetricsSummary> filesSummary, required MetricsThresholds thresholds}) -
const
Properties
-
filesSummary
→ List<
FileMetricsSummary> -
All files sorted by average MI (worst first).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasViolations → bool
-
Whether the project has any threshold violations.
no setter
- healthScore → double
-
Overall project health score (0-100).
no setter
- projectMetrics → ProjectMetrics
-
Project-wide statistical summary.
final
- ratingDistribution → RatingDistribution
-
Distribution of good/moderate/poor ratings.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thresholds → MetricsThresholds
-
Thresholds used for violation detection.
final
-
violations
→ List<
FunctionMetrics> -
Functions that exceed configured thresholds.
final
-
worstFunctions
→ List<
FunctionMetrics> -
Top 10 functions with worst maintainability.
final
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