components/sync/PRESUBMIT.py
def CheckRootTagNotInBlocklist(output_api, map_entry):
  """ Checks that map_entry's root isn't a blocklisted string.
  Args:
    output_api: presubmit_support OutputAPI instance
    map_entry: ModelTypeEnumEntry object to check
  Returns:
    A list of PresubmitError objects for each violation
  """
  if map_entry.root_tag in BLOCKLISTED_ROOT_TAGS:
    return [FormatPresubmitError(
        output_api,'root tag "%s" is a blocklisted root tag'
        % (map_entry.root_tag), map_entry.affected_lines)]
  return []
 Checks that map_entry's root isn't a blocklisted string.
  Args:
    output_api: presubmit_support OutputAPI instance
    map_entry: ModelTypeEnumEntry object to check
  Returns:
    A list of PresubmitError objects for each violation
  
Checks that map_entry's root isn't a blocklisted string.
Checks that map_entry ' s root isn ' t a blocklisted string .
def CheckRootTagNotInBlocklist(output_api, map_entry):
  if map_entry.root_tag in BLOCKLISTED_ROOT_TAGS:
    return [FormatPresubmitError(
        output_api,'root tag "%s" is a blocklisted root tag'
        % (map_entry.root_tag), map_entry.affected_lines)]
  return []
def CheckRootTagNotInBlocklist ( output_api , map_entry ) : if map_entry . root_tag in BLOCKLISTED_ROOT_TAGS : return [ FormatPresubmitError ( output_api , 'root tag "%s" is a blocklisted root tag' % ( map_entry . root_tag ) , map_entry . affected_lines ) ] return [ ]
Checks that map_entry's root isn't a blocklisted string.
Checks that map_entry ' s root isn ' t a blocklisted string .
""" Checks that map_entry's root isn't a blocklisted string.
  Args:
    output_api: presubmit_support OutputAPI instance
    map_entry: ModelTypeEnumEntry object to check
  Returns:
    A list of PresubmitError objects for each violation
  """
A list of PresubmitError objects for each violation
A list of PresubmitError objects for each violation
output_api
presubmit_support OutputAPI instance
presubmit_support OutputAPI instance
map_entry
ModelTypeEnumEntry object to check
ModelTypeEnumEntry object to check