webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
webkitpy.style.filereader.TextFileReader Class Reference
Inheritance diagram for webkitpy.style.filereader.TextFileReader:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def webkitpy.style.filereader.TextFileReader.__init__ (   self,
  filesystem,
  processor 
)
Create an instance.

Arguments:
  processor: A ProcessorBase instance.

Member Function Documentation

◆ count_delete_only_file()

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.

◆ process_file()

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.

◆ process_paths()

def webkitpy.style.filereader.TextFileReader.process_paths (   self,
  paths 
)

Member Data Documentation

◆ delete_only_file_count

webkitpy.style.filereader.TextFileReader.delete_only_file_count

◆ file_count

webkitpy.style.filereader.TextFileReader.file_count

◆ filesystem

webkitpy.style.filereader.TextFileReader.filesystem

The documentation for this class was generated from the following file: