'Filter the output of a linting tool against a list of ignored
warnings.
:param list warnings: List of warnings produced.
:param list ignored_warnings: List of warnings to ignore. A warning is
ignored it it has a substring matching something in this list.'

@staticmethod
def check_lint_output(warnings, ignored_warnings):

    unacceptable = []
    for warning in warnings:
        for ignored in ignored_warnings:
            if (ignored in warning):
                break
        else:
            unacceptable.append(warning)
    return unacceptable
