Lines Matching refs:lines
51 def extract_copyright_at(lines, i): argument
52 hash = lines[i].startswith("#")
58 if "/*" in lines[start - 1]:
64 while i < len(lines):
65 if "*/" in lines[i]:
67 if hash and len(lines[i]) == 0:
69 …if "\t@(#)" in lines[i] or "\tfrom: @(#)" in lines[i] or "From: @(#)" in lines[i] or "from OpenBSD…
71 if "\tcitrus Id: " in lines[i]:
73 …if "\t$Citrus: " in lines[i] or "\t$OpenBSD: " in lines[i] or " $FreeBSD: " in lines[i] or "\t$Net…
75 if "$FreeBSD$" in lines[i] or "$Citrus$" in lines[i]:
78 if "Original version ID:" in lines[i]:
86 …if lines[end - 1] != " *" and lines[end - 1] != " * ==============================================…
92 for line in lines[start:end]:
129 lines = content.split("\n")
131 if len(lines) <= 4:
143 warn('no copyright notice found in "%s" (%d lines)' % (path, len(lines)))
148 while i < len(lines):
149 if "Copyright" in lines[i] and not "@(#) Copyright" in lines[i]:
150 i = extract_copyright_at(lines, i)