def lint_repeats(tool_xml, lint_ctx):
 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.')

def lint_repeats ( tool_xml , lint_ctx ) : 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.' )
lint repeat blocks in tool inputs .