third_party/blink/tools/blinkpy/style/checkers/cpp.py
def check_for_function_lengths(clean_lines, line_number, function_state,
                               error):
    """Reports for long function bodies.

    For an overview why this is done, see:
    https://google.github.io/styleguide/cppguide.html#Write_Short_Functions

    Blank/comment lines are not counted so as to avoid encouraging the removal
    of vertical space and comments just to get through a lint check.
    NOLINT *on the last line of a function* disables this check.

    Args:
      clean_lines: A CleansedLines instance containing the file.
      line_number: The number of the line to check.
      function_state: Current function name and lines in body so far.
      error: The function to call with any errors found.
    """
    lines = clean_lines.lines
    line = lines[line_number]
    raw = clean_lines.raw_lines
    raw_line = raw[line_number]

    if function_state.end_position.row == line_number:  # last line
        if not search(r'\bNOLINT\b', raw_line):
            function_state.check(error, line_number)
    elif not match(r'^\s*$', line):
        function_state.count(line_number)
Reports for long function bodies.

    For an overview why this is done, see:
    https://google.github.io/styleguide/cppguide.html#Write_Short_Functions

    Blank/comment lines are not counted so as to avoid encouraging the removal
    of vertical space and comments just to get through a lint check.
    NOLINT *on the last line of a function* disables this check.

    Args:
      clean_lines: A CleansedLines instance containing the file.
      line_number: The number of the line to check.
      function_state: Current function name and lines in body so far.
      error: The function to call with any errors found.
    
Reports for long function bodies.

Blank/comment lines are not counted so as to avoid encouraging the removal
of vertical space and comments just to get through a lint check.
NOLINT *on the last line of a function* disables this check.
Reports for long function bodies . Blank / comment lines are not counted so as to avoid encouraging the removal of vertical space and comments just to get through a lint check . NOLINT * on the last line of a function * disables this check .
def check_for_function_lengths(clean_lines, line_number, function_state,
                               error):
    lines = clean_lines.lines
    line = lines[line_number]
    raw = clean_lines.raw_lines
    raw_line = raw[line_number]
    if function_state.end_position.row == line_number:  
        if not search(r'\bNOLINT\b', raw_line):
            function_state.check(error, line_number)
    elif not match(r'^\s*$', line):
        function_state.count(line_number)
def check_for_function_lengths ( clean_lines , line_number , function_state , error ) : lines = clean_lines . lines line = lines [ line_number ] raw = clean_lines . raw_lines raw_line = raw [ line_number ] if function_state . end_position . row == line_number : if not search ( r'\bNOLINT\b' , raw_line ) : function_state . check ( error , line_number ) elif not match ( r'^\s*$' , line ) : function_state . count ( line_number )
Reports for long function bodies.
Reports for long function bodies .
"""Reports for long function bodies.

    For an overview why this is done, see:
    https://google.github.io/styleguide/cppguide.html#Write_Short_Functions

    Blank/comment lines are not counted so as to avoid encouraging the removal
    of vertical space and comments just to get through a lint check.
    NOLINT *on the last line of a function* disables this check.

    Args:
      clean_lines: A CleansedLines instance containing the file.
      line_number: The number of the line to check.
      function_state: Current function name and lines in body so far.
      error: The function to call with any errors found.
    """ # last line
clean_lines
A CleansedLines instance containing the file.
A CleansedLines instance containing the file .
line_number
The number of the line to check.
The number of the line to check .
function_state
Current function name and lines in body so far.
Current function name and lines in body so far .
error
The function to call with any errors found.
The function to call with any errors found .