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
projectRootand returns a report. -
toString(
) → String -
A string representation of this object.
inherited
-
writeReport(
ScanReport report, {required String outDir, required String format}) → void -
Writes
reporttooutDirin the requestedformat.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited