RiskScorer class

Orchestrates all RiskSignals and produces a DiagnosisResult for a single package.

Create one scorer per scan, passing in the local Dart SDK version and any pre-resolved repository reachability data.

Constructors

RiskScorer({Version? dartSdkVersion, Map<String, bool> repoReachability = const {}})
Creates a RiskScorer.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

diagnose(PackageMetadata meta) DiagnosisResult
Evaluates all signals for meta and returns a fully scored DiagnosisResult, with signals sorted by descending weight.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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