imas_validator.validate_options.RuleFilter

class imas_validator.validate_options.RuleFilter(name: ~typing.List[str] = <factory>, ids: ~typing.List[str] = <factory>)

Bases: object

Class for filtering individual rules.

For more information, see Rule Filtering

__init__(name: ~typing.List[str] = <factory>, ids: ~typing.List[str] = <factory>)

Methods

__init__([name, ids])

is_selected(rule)

Check whether rule should be applied or not

Attributes

name

List of strings that should be present in rule name

ids

List of strings that should be present in rule ids_names

ids : List[str]

List of strings that should be present in rule ids_names

is_selected(rule: IDSValidationRule) bool

Check whether rule should be applied or not

Parameters:
rule: IDSValidationRule

rule to be checked

Returns:

Whether or not validation rule should be applied

name : List[str]

List of strings that should be present in rule name


Last update: 2025-06-05