tiger_lib::trigger

Function validate_trigger_max_sev

Source
pub fn validate_trigger_max_sev(
    block: &Block,
    data: &Everything,
    sc: &mut ScopeContext,
    tooltipped: Tooltipped,
    max_sev: Severity,
) -> bool
Expand description

Like validate_trigger but specifies a maximum Severity for the reports emitted by this validation. Used to validate triggers in item definitions that don’t warrant the Error level.

Returns true iff the trigger had side effects (such as saving scopes).