third_party/blink/tools/blinkpy/style/checker.py
def process(self, lines, file_path, line_numbers=None):
        """Check the given lines for style.

        Arguments:
          lines: A list of all lines in the file to check.
          file_path: The path of the file to process.  If possible, the path
                     should be relative to the source root.  Otherwise,
                     path-specific logic may not behave as expected.
          line_numbers: A list of line numbers of the lines for which
                        style errors should be reported, or None if errors
                        for all lines should be reported.  When not None, this
                        list normally contains the line numbers corresponding
                        to the modified lines of a patch.
        """
        _log.debug('Checking style: ' + file_path)

        style_error_handler = DefaultStyleErrorHandler(
            configuration=self._configuration,
            file_path=file_path,
            increment_error_count=self._increment_error_count,
            line_numbers=line_numbers)

        carriage_checker = self._carriage_checker_class(style_error_handler)

        # Check for and remove trailing carriage returns ("\r").
        if self._dispatcher.should_check_and_strip_carriage_returns(file_path):
            lines = carriage_checker.check(lines)

        min_confidence = self._configuration.min_confidence
        checker = self._dispatcher.dispatch(file_path, style_error_handler,
                                            min_confidence)

        if checker is None:
            raise AssertionError(
                "File should not be checked: '%s'" % file_path)

        _log.debug('Using class: ' + checker.__class__.__name__)

        checker.check(lines)
Check the given lines for style.

        Arguments:
          lines: A list of all lines in the file to check.
          file_path: The path of the file to process.  If possible, the path
                     should be relative to the source root.  Otherwise,
                     path-specific logic may not behave as expected.
          line_numbers: A list of line numbers of the lines for which
                        style errors should be reported, or None if errors
                        for all lines should be reported.  When not None, this
                        list normally contains the line numbers corresponding
                        to the modified lines of a patch.
        
Check the given lines for style.
Check the given lines for style .
def process(self, lines, file_path, line_numbers=None):
        _log.debug('Checking style: ' + file_path)
        style_error_handler = DefaultStyleErrorHandler(
            configuration=self._configuration,
            file_path=file_path,
            increment_error_count=self._increment_error_count,
            line_numbers=line_numbers)
        carriage_checker = self._carriage_checker_class(style_error_handler)
        if self._dispatcher.should_check_and_strip_carriage_returns(file_path):
            lines = carriage_checker.check(lines)
        min_confidence = self._configuration.min_confidence
        checker = self._dispatcher.dispatch(file_path, style_error_handler,
                                            min_confidence)
        if checker is None:
            raise AssertionError(
                "File should not be checked: '%s'" % file_path)
        _log.debug('Using class: ' + checker.__class__.__name__)
        checker.check(lines)
def process ( self , lines , file_path , line_numbers = None ) : _log . debug ( 'Checking style: ' + file_path ) style_error_handler = DefaultStyleErrorHandler ( configuration = self . _configuration , file_path = file_path , increment_error_count = self . _increment_error_count , line_numbers = line_numbers ) carriage_checker = self . _carriage_checker_class ( style_error_handler ) if self . _dispatcher . should_check_and_strip_carriage_returns ( file_path ) : lines = carriage_checker . check ( lines ) min_confidence = self . _configuration . min_confidence checker = self . _dispatcher . dispatch ( file_path , style_error_handler , min_confidence ) if checker is None : raise AssertionError ( "File should not be checked: '%s'" % file_path ) _log . debug ( 'Using class: ' + checker . __class__ . __name__ ) checker . check ( lines )
Check the given lines for style.
Check the given lines for style .
"""Check the given lines for style.

        Arguments:
          lines: A list of all lines in the file to check.
          file_path: The path of the file to process.  If possible, the path
                     should be relative to the source root.  Otherwise,
                     path-specific logic may not behave as expected.
          line_numbers: A list of line numbers of the lines for which
                        style errors should be reported, or None if errors
                        for all lines should be reported.  When not None, this
                        list normally contains the line numbers corresponding
                        to the modified lines of a patch.
        """ # Check for and remove trailing carriage returns ("\r").
self
lines
A list of all lines in the file to check.
A list of all lines in the file to check .
file_path
The path of the file to process.  If possible, the path
should be relative to the source root.  Otherwise,
path-specific logic may not behave as expected.
The path of the file to process . If possible the path should be relative to the source root . Otherwise path - specific logic may not behave as expected .
line_numbers
A list of line numbers of the lines for which
style errors should be reported, or None if errors
for all lines should be reported.  When not None, this
list normally contains the line numbers corresponding
to the modified lines of a patch.
A list of line numbers of the lines for which style errors should be reported or None if errors for all lines should be reported . When not None this list normally contains the line numbers corresponding to the modified lines of a patch .