ScanReport class

The full output of a dep_sherpa scan operation.

Constructors

ScanReport({required DateTime generatedAt, required String projectName, required String? projectVersion, required String rootPath, required bool includeTransitive, required bool offline, required GraphSummary graph, required List<DependencyRiskEntry> dependencies, required double overallScore, required Map<String, Object?> summary, Map<String, Object?> platformReadiness = const <String, Object?>{}})
Creates a scan report.
const

Properties

dependencies → List<DependencyRiskEntry>
The scored dependency entries.
final
generatedAt → DateTime
The UTC timestamp when the report was generated.
final
graph → GraphSummary
The summarized project graph.
final
hashCode → int
The hash code for this object.
no setterinherited
includeTransitive → bool
Whether transitive dependencies were included in the scored entries.
final
offline → bool
Whether the scan ran in offline mode.
final
overallScore → double
The averaged overall dependency risk score.
final
platformReadiness → Map<String, Object?>
Optional platform readiness metadata.
final
projectName → String
The root package name from pubspec.yaml.
final
projectVersion → String?
The root package version from pubspec.yaml.
final
rootPath → String
The normalized project root path.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
summary → Map<String, Object?>
Additional summary metadata for the report.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ranked({int? top}) → List<DependencyRiskEntry>
Returns dependencies ordered by descending risk score.
toJson() → Map<String, Object?>
Serializes the full report for JSON output.
toString() → String
A string representation of this object.
inherited

Operators

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