Code Duplication    Length = 10-10 lines in 2 locations

sdk/build-support/cpplint.py 1 location

@@ 1926-1935 (lines=10) @@
1923
  return (line, 0, -1)
1924
1925
1926
def CheckForCopyright(filename, lines, error):
1927
  """Logs an error if no Copyright message appears at the top of the file."""
1928
1929
  # We'll say it should occur by line 10. Don't forget there's a
1930
  # dummy line at the front.
1931
  for line in range(1, min(len(lines), 11)):
1932
    if re.search(r'Copyright', lines[line], re.I): break
1933
  else:                       # means no copyright line was found
1934
    error(filename, 0, 'legal/copyright', 5,
1935
          'No copyright message found.  '
1936
          'You should have a line: "Copyright [year] <Copyright Owner>"')
1937
1938

core/build-support/cpplint.py 1 location

@@ 1926-1935 (lines=10) @@
1923
  return (line, 0, -1)
1924
1925
1926
def CheckForCopyright(filename, lines, error):
1927
  """Logs an error if no Copyright message appears at the top of the file."""
1928
1929
  # We'll say it should occur by line 10. Don't forget there's a
1930
  # dummy line at the front.
1931
  for line in range(1, min(len(lines), 11)):
1932
    if re.search(r'Copyright', lines[line], re.I): break
1933
  else:                       # means no copyright line was found
1934
    error(filename, 0, 'legal/copyright', 5,
1935
          'No copyright message found.  '
1936
          'You should have a line: "Copyright [year] <Copyright Owner>"')
1937
1938