(
    scan_result: ScanResult, all_policies: bool, matches_ignore: Iterable[Any]
)
remove_ignored removes occurrences from a Scan Result based on a sha
    made from its matches.

    :param scan_result: ScanResult to filter
    :param matches_ignore: match SHAs or plaintext matches to filter out
remove_ignored removes occurrences from a Scan Result based on a sha
    made from its matches.
remove_ignored removes occurrences from a Scan Result based on a sha made from its matches .
def remove_ignored_from_result(
    scan_result: ScanResult, all_policies: bool, matches_ignore: Iterable[Any]
) -> None:
    """
    remove_ignored removes occurrences from a Scan Result based on a sha
    made from its matches.

    :param scan_result: ScanResult to filter
    :param matches_ignore: match SHAs or plaintext matches to filter out
    """

    scan_result.policy_breaks = [
        policy_break
        for policy_break in scan_result.policy_breaks
        if not is_ignored(policy_break, all_policies, matches_ignore)
    ]

    scan_result.policy_break_count = len(scan_result.policy_breaks)
def remove_ignored_from_result ( scan_result : ScanResult , all_policies : bool , matches_ignore : Iterable [ Any ] ) -> None : scan_result . policy_breaks = [ policy_break for policy_break in scan_result . policy_breaks if not is_ignored ( policy_break , all_policies , matches_ignore ) ] scan_result . policy_break_count = len ( scan_result . policy_breaks )