third_party/blink/tools/blinkpy/style/checkers/cpp.py
def check_for_copyright(lines, error):
    """Logs an error if no Copyright message appears at the top of the file."""

    # We'll say it should occur by line 10. Don't forget there's a
    # dummy line at the front.
    for line in xrange(1, min(len(lines), 11)):
        if re.search(r'Copyright', lines[line], re.I):
            break
    else:  # means no copyright line was found
        error(
            0, 'legal/copyright', 5, 'No copyright message found.  '
            'You should have a line: "Copyright [year] <Copyright Owner>"')
Logs an error if no Copyright message appears at the top of the file.
Logs an error if no Copyright message appears at the top of the file.
Logs an error if no Copyright message appears at the top of the file .
def check_for_copyright(lines, error):
    for line in xrange(1, min(len(lines), 11)):
        if re.search(r'Copyright', lines[line], re.I):
            break
    else:  
        error(
            0, 'legal/copyright', 5, 'No copyright message found.  '
            'You should have a line: "Copyright [year] <Copyright Owner>"')
def check_for_copyright ( lines , error ) : for line in xrange ( 1 , min ( len ( lines ) , 11 ) ) : if re . search ( r'Copyright' , lines [ line ] , re . I ) : break else : error ( 0 , 'legal/copyright' , 5 , 'No copyright message found.  ' 'You should have a line: "Copyright [year] <Copyright Owner>"' )
Logs an error if no Copyright message appears at the top of the file.
Logs an error if no Copyright message appears at the top of the file .
"""Logs an error if no Copyright message appears at the top of the file.""" # We'll say it should occur by line 10. Don't forget there's a # dummy line at the front. # means no copyright line was found
lines
error