import re


def _is_ignored(filename, ignored_paths):
    """ Check if the file should be ignored

    :type filename: str
    :param filename: Name of file check
    :type ignored_paths: list
    :param ignored_paths:
        List of regular expressions we should validate against
    :returns: bool -- True if the file should be ignored
    """
    for ignored_path in ignored_paths:
        if re.findall(ignored_path, filename):
            return True

    return False