def METHOD_NAME(links, report):
    for link, rec in links.items():
        if rec['status'] == 'redirect' and 'permanently to' in rec['note']:
            _report_flaws(
                report, "permanent-redirect", links[link]['uses'],
                f"{link} {rec['note']}")