webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions
webkitpy.style.checker Namespace Reference

Classes

class  CheckerDispatcher
 
class  FileType
 
class  ProcessorBase
 
class  StyleProcessor
 
class  StyleProcessorConfiguration
 

Functions

def check_webkit_style_parser ()
 
def check_webkit_style_configuration (options)
 
def configure_logging (stream, logger=None, is_verbose=False)
 

Function Documentation

◆ check_webkit_style_configuration()

def webkitpy.style.checker.check_webkit_style_configuration (   options)
Return a StyleProcessorConfiguration instance for check-webkit-style.

Args:
  options: A CommandOptionValues instance.

◆ check_webkit_style_parser()

def webkitpy.style.checker.check_webkit_style_parser ( )

◆ configure_logging()

def webkitpy.style.checker.configure_logging (   stream,
  logger = None,
  is_verbose = False 
)
Configure logging, and return the list of handlers added.

Returns:
  A list of references to the logging handlers added to the root
  logger.  This allows the caller to later remove the handlers
  using logger.removeHandler.  This is useful primarily during unit
  testing where the caller may want to configure logging temporarily
  and then undo the configuring.

Args:
  stream: A file-like object to which to log.  The stream must
          define an "encoding" data attribute, or else logging
          raises an error.
  logger: A logging.logger instance to configure.  This parameter
          should be used only in unit tests.  Defaults to the
          root logger.
  is_verbose: A boolean value of whether logging should be verbose.