parameters: (self)
docstring: Check that each source file ends with a newline character.
docstring_summary: Check that each source file ends with a newline character.
docstring_tokens: Check that each source file ends with a newline character .
function: def _check_newlines(self):
          """Check that each source file ends with a newline character."""
          if self.raw_lines and self.raw_lines[-1][-1:] != '\n':
              self._error(
                  len(self.raw_lines), 'mongo/final_newline',
                  'Files must end with a newline character.')
function_tokens: def _check_newlines ( self ) : if self . raw_lines and self . raw_lines [ - 1 ] [ - 1 : ] != '\n' : self . _error ( len ( self . raw_lines ) , 'mongo/final_newline' , 'Files must end with a newline character.' )