drupflare/drangler - v0.1.0
    Preparing search index...

    Interface Rule

    interface Rule {
        direction: Direction | "both";
        id: string;
        evaluate(survey: SiteSurvey, target: TargetRuntime): Finding | null;
    }
    Index
    direction: Direction | "both"
    id: string
    • null when the rule does not apply to this survey.

      target is what the DESTINATION runs, with its provenance. Passed in rather than read from a constant so a rule cannot assert a version as fact, and so the same figure drives both the comparison and the message a user reads.

      Parameters

      Returns Finding | null