tools/android/checkxmlstyle/checkxmlstyle.py
def _CheckStringResourceEllipsisPunctuations(input_api, output_api):
  """Check whether inappropriate ellipsis are used"""
  warning = '''
  Android String Resources Check failed:
    Your new string appears to use three periods(\u002E \\u002E) to represent
    an ellipsis, which is not encouraged. Instead, an ellipsis mark
    (\u2026 \\u2026) is usually preferred.

    Please reach out to the UX designer/writer in your team to double check
    which punctuation should be correctly used. Ignore this warning if UX has confirmed.

    Reach out to writing-strings@chromium.org if you have any question about writing strings.
  '''
  return _checkStringResourcePunctuations(re.compile(u'[\u002E]{3}'), warning,
                                          input_api, output_api)
Check whether inappropriate ellipsis are used
Check whether inappropriate ellipsis are used
Check whether inappropriate ellipsis are used
def _CheckStringResourceEllipsisPunctuations(input_api, output_api):
  warning = '''
  Android String Resources Check failed:
    Your new string appears to use three periods(\u002E \\u002E) to represent
    an ellipsis, which is not encouraged. Instead, an ellipsis mark
    (\u2026 \\u2026) is usually preferred.
    Please reach out to the UX designer/writer in your team to double check
    which punctuation should be correctly used. Ignore this warning if UX has confirmed.
    Reach out to writing-strings@chromium.org if you have any question about writing strings.
  '''
  return _checkStringResourcePunctuations(re.compile(u'[\u002E]{3}'), warning,
                                          input_api, output_api)
def _CheckStringResourceEllipsisPunctuations ( input_api , output_api ) : warning = '''
  Android String Resources Check failed:
    Your new string appears to use three periods(\u002E \\u002E) to represent
    an ellipsis, which is not encouraged. Instead, an ellipsis mark
    (\u2026 \\u2026) is usually preferred.

    Please reach out to the UX designer/writer in your team to double check
    which punctuation should be correctly used. Ignore this warning if UX has confirmed.

    Reach out to writing-strings@chromium.org if you have any question about writing strings.
  ''' return _checkStringResourcePunctuations ( re . compile ( u'[\u002E]{3}' ) , warning , input_api , output_api )
Check whether inappropriate ellipsis are used
Check whether inappropriate ellipsis are used
"""Check whether inappropriate ellipsis are used"""
input_api
output_api