parameters: (filename, lines)
return_statement: return lint
docstring: Checks to make sure the file has no lines with trailing whitespace.
  
    Args:
      filename: the file under consideration as string
      lines: contents of the file as string array
  
    Returns:
      A list of tuples with format [(filename, line number, msg), ...] with any
      violations found.
docstring_summary: Checks to make sure the file has no lines with trailing whitespace.
docstring_tokens: Checks to make sure the file has no lines with trailing whitespace .
function: def VerifyTrailingWhitespace(filename, lines):
    """Checks to make sure the file has no lines with trailing whitespace.
  
    Args:
      filename: the file under consideration as string
      lines: contents of the file as string array
  
    Returns:
      A list of tuples with format [(filename, line number, msg), ...] with any
      violations found.
    """
    lint = []
    trailing_whitespace_re = re.compile(r'\s+$')
    line_num = 1
    for line in lines:
      if trailing_whitespace_re.match(line.rstrip('\n')):
        lint.append((filename, line_num, 'Trailing whitespace'))
      line_num += 1
    return lint
function_tokens: def VerifyTrailingWhitespace ( filename , lines ) : lint = [ ] trailing_whitespace_re = re . compile ( r'\s+$' ) line_num = 1 for line in lines : if trailing_whitespace_re . match ( line . rstrip ( '\n' ) ) : lint . append ( ( filename , line_num , 'Trailing whitespace' ) ) line_num += 1 return lint