@classmethod
def filter_regex_exceptions(cls, exceptions, issues):
    'Filter issues based on message regex exceptions list.'
    for exception in exceptions:
        exception_re = exception['regex']
        exception_tools = exception['tools']
        compiled_re = re.compile(exception_re)
        for (tool, tool_issues) in list(issues.items()):
            to_remove = []
            if ((exception_tools == 'all') or (tool in exception_tools)):
                for issue in tool_issues:
                    match = compiled_re.match(issue.message)
                    if match:
                        to_remove.append(issue)
            issues[tool] = [issue for issue in tool_issues if (issue not in to_remove)]
    return issues
Filter issues based on message regex exceptions list.
@classmethod
def filter_regex_exceptions(cls, exceptions, issues):
    
    for exception in exceptions:
        exception_re = exception['regex']
        exception_tools = exception['tools']
        compiled_re = re.compile(exception_re)
        for (tool, tool_issues) in list(issues.items()):
            to_remove = []
            if ((exception_tools == 'all') or (tool in exception_tools)):
                for issue in tool_issues:
                    match = compiled_re.match(issue.message)
                    if match:
                        to_remove.append(issue)
            issues[tool] = [issue for issue in tool_issues if (issue not in to_remove)]
    return issues