third_party/blink/tools/blinkpy/style/patchreader.py
def check(self, patch_string):
        """Checks style in the given patch."""
        patch_files = DiffParser(patch_string.splitlines()).files

        for path, diff_file in patch_files.items():
            line_numbers = diff_file.added_or_modified_line_numbers()
            _log.debug('Found %s new or modified lines in: %s',
                       len(line_numbers), path)

            if not line_numbers:
                # Don't check files which contain only deleted lines
                # as they can never add style errors. However, mark them as
                # processed so that we count up number of such files.
                self._text_file_reader.count_delete_only_file()
                continue

            self._text_file_reader.process_file(
                file_path=path, line_numbers=line_numbers)
Checks style in the given patch.
Checks style in the given patch.
Checks style in the given patch .
def check(self, patch_string):
        patch_files = DiffParser(patch_string.splitlines()).files
        for path, diff_file in patch_files.items():
            line_numbers = diff_file.added_or_modified_line_numbers()
            _log.debug('Found %s new or modified lines in: %s',
                       len(line_numbers), path)
            if not line_numbers:
                self._text_file_reader.count_delete_only_file()
                continue
            self._text_file_reader.process_file(
                file_path=path, line_numbers=line_numbers)
def check ( self , patch_string ) : patch_files = DiffParser ( patch_string . splitlines ( ) ) . files for path , diff_file in patch_files . items ( ) : line_numbers = diff_file . added_or_modified_line_numbers ( ) _log . debug ( 'Found %s new or modified lines in: %s' , len ( line_numbers ) , path ) if not line_numbers : self . _text_file_reader . count_delete_only_file ( ) continue self . _text_file_reader . process_file ( file_path = path , line_numbers = line_numbers )
Checks style in the given patch.
Checks style in the given patch .
"""Checks style in the given patch.""" # Don't check files which contain only deleted lines # as they can never add style errors. However, mark them as # processed so that we count up number of such files.
self
patch_string