webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
def | __init__ (self, filesystem, processor) |
def | process_file (self, file_path, kwargs) |
def | process_paths (self, paths) |
def | count_delete_only_file (self) |
Public Attributes | |
filesystem | |
file_count | |
delete_only_file_count | |
Supports reading and processing text files. Attributes: file_count: The total number of files passed to this instance for processing, including non-text files and files that should be skipped. delete_only_file_count: The total number of files that are not processed this instance actually because the files don't have any modified lines but should be treated as processed.
def webkitpy.style.filereader.TextFileReader.__init__ | ( | self, | |
filesystem, | |||
processor | |||
) |
Create an instance. Arguments: processor: A ProcessorBase instance.
def webkitpy.style.filereader.TextFileReader.count_delete_only_file | ( | self | ) |
Count up files that contains only deleted lines. Files which has no modified or newly-added lines don't need to check style, but should be treated as checked. For that purpose, we just count up the number of such files.
def webkitpy.style.filereader.TextFileReader.process_file | ( | self, | |
file_path, | |||
kwargs | |||
) |
Process the given file by calling the processor's process() method. Args: file_path: The path of the file to process. **kwargs: Any additional keyword parameters that should be passed to the processor's process() method. The process() method should support these keyword arguments. Raises: SystemExit: If no file at file_path exists.
def webkitpy.style.filereader.TextFileReader.process_paths | ( | self, | |
paths | |||
) |
webkitpy.style.filereader.TextFileReader.delete_only_file_count |
webkitpy.style.filereader.TextFileReader.file_count |
webkitpy.style.filereader.TextFileReader.filesystem |