mirror of https://github.com/apache/lucene.git
detect and fail when class javadocs is really just the license header
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1331787 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
347019a36b
commit
7329e7e9d1
|
@ -58,6 +58,14 @@ def checkSummary(fullPath):
|
||||||
printed = True
|
printed = True
|
||||||
print ' missing: %s' % unescapeHTML(m.group(1))
|
print ' missing: %s' % unescapeHTML(m.group(1))
|
||||||
anyMissing = True
|
anyMissing = True
|
||||||
|
elif lineLower.find('licensed to the apache software foundation') != -1 or lineLower.find('copyright 2004 the apache software foundation') != -1:
|
||||||
|
m = reHREF.search(lastLine)
|
||||||
|
if not printed:
|
||||||
|
print
|
||||||
|
print fullPath
|
||||||
|
printed = True
|
||||||
|
print ' license-is-javadoc: %s' % unescapeHTML(m.group(1))
|
||||||
|
anyMissing = True
|
||||||
lastLine = line
|
lastLine = line
|
||||||
if desc is not None and fullPath.find('/overview-summary.html') == -1:
|
if desc is not None and fullPath.find('/overview-summary.html') == -1:
|
||||||
raise RuntimeError('BUG: failed to locate description in %s' % fullPath)
|
raise RuntimeError('BUG: failed to locate description in %s' % fullPath)
|
||||||
|
|
Loading…
Reference in New Issue