ScanService class

Coordinates dependency inspection, enrichment, scoring, and reporting.

Constructors

ScanService({required ConfigService configService, required PubspecService pubspecService, required DepsService depsService, required GraphService graphService, required PubApiService pubApiService, required GithubService githubService, required ScoringService scoringService, required FileSystemAdapter fileSystem})
Creates a scan service.
const

Properties

configService ConfigService
The configuration loader.
final
depsService DepsService
The dependency graph inspection service.
final
fileSystem FileSystemAdapter
The filesystem adapter used for report output.
final
githubService GithubService
The GitHub enrichment service.
final
graphService GraphService
The graph-analysis service.
final
hashCode int
The hash code for this object.
no setterinherited
pubApiService PubApiService
The pub.dev enrichment service.
final
pubspecService PubspecService
The root project manifest loader.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scoringService ScoringService
The risk-scoring service.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scan({required String projectRoot, String? configPath, required bool includeTransitive}) Future<ScanReport>
Scans the project at projectRoot and returns a report.
toString() String
A string representation of this object.
inherited
writeReport(ScanReport report, {required String outDir, required String format}) → void
Writes report to outDir in the requested format.

Operators

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