def run_validators(new_data, old_data):
    """
    Run through all matching validators.

    :param new_data: New lint data.
    :param old_data: Old lint data (before review)
    :return:
    """
    #{'validator_name': (success, score, message)}
    validation_data = {}
    for file_type, lint_data in list(new_data.items()):
        #TODO: What to do if old data doesn't have this filetype?
        old_lint_data = old_data.get(file_type, {})
        validator = ValidatorFactory.get_validator(file_type)
        if validator is not None:
            validation_data[validator.name] = validator.run(lint_data, old_lint_data)
    return validation_data
def run_validators ( new_data , old_data ) : validation_data = { } for file_type , lint_data in list ( new_data . items ( ) ) : old_lint_data = old_data . get ( file_type , { } ) validator = ValidatorFactory . get_validator ( file_type ) if validator is not None : validation_data [ validator . name ] = validator . run ( lint_data , old_lint_data ) return validation_data
Run through all matching validators.

    :param new_data: New lint data.
    :param old_data: Old lint data (before review)
    :return: