Function buildVerdict

  • Build the overall verdict from current module reports.

    Module reports own their detailed findings; this function only adds the few cross-module/aggregate findings and applies the worst-verdict-wins policy.

    Parameters

    • report: VerdictInput
    • Optional error: Error
    • options: VerdictOptions = {}

    Returns {
        reasons: PreCallDiagnosticReason[];
        verdict: Verdict;
        warnings: PreCallDiagnosticWarning[];
    }

    • reasons: PreCallDiagnosticReason[]
    • verdict: Verdict
    • warnings: PreCallDiagnosticWarning[]