def lint_repeats(tool_xml, lint_ctx):
    """Lint repeat blocks in tool inputs."""
    repeats = tool_xml.findall('./inputs//repeat')
    for repeat in repeats:
        if 'name' not in repeat.attrib:
            lint_ctx.error('Repeat does not specify name attribute.')
        if 'title' not in repeat.attrib:
            lint_ctx.error('Repeat does not specify title attribute.')
