tools/android/checkxmlstyle/checkxmlstyle.py
def _CommonChecks(input_api, output_api):
  """Checks common to both upload and commit."""
  result = []
  result.extend(_CheckColorFormat(input_api, output_api))
  result.extend(_CheckColorReferences(input_api, output_api))
  result.extend(_CheckDuplicateColors(input_api, output_api))
  result.extend(_CheckSemanticColorsReferences(input_api, output_api))
  result.extend(_CheckColorPaletteReferences(input_api, output_api))
  result.extend(_CheckXmlNamespacePrefixes(input_api, output_api))
  result.extend(_CheckTextAppearance(input_api, output_api))
  result.extend(_CheckLineSpacingAttribute(input_api, output_api))
  result.extend(_CheckButtonCompatWidgetUsage(input_api, output_api))
  result.extend(_CheckStringResourceQuotesPunctuations(input_api, output_api))
  result.extend(_CheckStringResourceEllipsisPunctuations(input_api, output_api))
  # Add more checks here
  return result
Checks common to both upload and commit.
Checks common to both upload and commit.
Checks common to both upload and commit .
def _CommonChecks(input_api, output_api):
  result = []
  result.extend(_CheckColorFormat(input_api, output_api))
  result.extend(_CheckColorReferences(input_api, output_api))
  result.extend(_CheckDuplicateColors(input_api, output_api))
  result.extend(_CheckSemanticColorsReferences(input_api, output_api))
  result.extend(_CheckColorPaletteReferences(input_api, output_api))
  result.extend(_CheckXmlNamespacePrefixes(input_api, output_api))
  result.extend(_CheckTextAppearance(input_api, output_api))
  result.extend(_CheckLineSpacingAttribute(input_api, output_api))
  result.extend(_CheckButtonCompatWidgetUsage(input_api, output_api))
  result.extend(_CheckStringResourceQuotesPunctuations(input_api, output_api))
  result.extend(_CheckStringResourceEllipsisPunctuations(input_api, output_api))
  return result
def _CommonChecks ( input_api , output_api ) : result = [ ] result . extend ( _CheckColorFormat ( input_api , output_api ) ) result . extend ( _CheckColorReferences ( input_api , output_api ) ) result . extend ( _CheckDuplicateColors ( input_api , output_api ) ) result . extend ( _CheckSemanticColorsReferences ( input_api , output_api ) ) result . extend ( _CheckColorPaletteReferences ( input_api , output_api ) ) result . extend ( _CheckXmlNamespacePrefixes ( input_api , output_api ) ) result . extend ( _CheckTextAppearance ( input_api , output_api ) ) result . extend ( _CheckLineSpacingAttribute ( input_api , output_api ) ) result . extend ( _CheckButtonCompatWidgetUsage ( input_api , output_api ) ) result . extend ( _CheckStringResourceQuotesPunctuations ( input_api , output_api ) ) result . extend ( _CheckStringResourceEllipsisPunctuations ( input_api , output_api ) ) return result
Checks common to both upload and commit.
Checks common to both upload and commit .
"""Checks common to both upload and commit.""" # Add more checks here
input_api
output_api