def lint_general(tool_source, lint_ctx):
 version = tool_source.parse_version()
 if (not version):
  lint_ctx.error(ERROR_VERSION_MSG)
 else:
  lint_ctx.valid((VALID_VERSION_MSG % version))
 name = tool_source.parse_name()
 if (not name):
  lint_ctx.error(ERROR_NAME_MSG)
 else:
  lint_ctx.valid((VALID_NAME_MSG % name))
 tool_id = tool_source.parse_id()
 if (not tool_id):
  lint_ctx.error(ERROR_ID_MSG)
 else:
  lint_ctx.valid((VALID_ID_MSG % tool_id))
 if re.search('\\s', tool_id):
  lint_ctx.warn('Tool id contains a space - this is discouraged.')

def lint_general ( tool_source , lint_ctx ) : version = tool_source . parse_version ( ) if ( not version ) : lint_ctx . error ( ERROR_VERSION_MSG ) else : lint_ctx . valid ( ( VALID_VERSION_MSG % version ) ) name = tool_source . parse_name ( ) if ( not name ) : lint_ctx . error ( ERROR_NAME_MSG ) else : lint_ctx . valid ( ( VALID_NAME_MSG % name ) ) tool_id = tool_source . parse_id ( ) if ( not tool_id ) : lint_ctx . error ( ERROR_ID_MSG ) else : lint_ctx . valid ( ( VALID_ID_MSG % tool_id ) ) if re . search ( '\\s' , tool_id ) : lint_ctx . warn ( 'Tool id contains a space - this is discouraged.' )
check tool version .