def add_check_plugin(check_plugin: CheckPlugin) -> None: validate_check_ruleset_item_consistency(check_plugin, registered_check_plugins) registered_check_plugins[check_plugin.name] = check_plugin
def add_check_plugin(check_plugin: CheckPlugin) -> None: validate_check_ruleset_item_consistency(check_plugin, _check_plugins_by_ruleset_name) registered_check_plugins[check_plugin.name] = check_plugin _check_plugins_by_ruleset_name[check_plugin.check_ruleset_name].append( check_plugin)