ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Rules.Remediation

Description

The remediation fast lane's verdict for each version of one package, from its advisory rows. An exact fix admits when no advisory still affects it. A partial fix admits only in differential mode, when the stored scores of the advisories still affecting it sit inside the limits. Scores compare as shortest round-trip decimals, so a gap of 1.0 holds between 8.1 and 7.1.

Synopsis

Documentation

remediationVerdict :: RemainingAdvisories -> PackageAdvisories -> RuleEvidence -> RuleVerdict Source #

Decide each version. The limits convert to decimals once, and a package no row fixes shares one abstention.