You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/04/28 17:39:41 UTC

svn commit: r1331787 - /lucene/dev/trunk/dev-tools/scripts/checkJavaDocs.py

Author: rmuir
Date: Sat Apr 28 15:39:41 2012
New Revision: 1331787

URL: http://svn.apache.org/viewvc?rev=1331787&view=rev
Log:
detect and fail when class javadocs is really just the license header

Modified:
    lucene/dev/trunk/dev-tools/scripts/checkJavaDocs.py

Modified: lucene/dev/trunk/dev-tools/scripts/checkJavaDocs.py
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/dev-tools/scripts/checkJavaDocs.py?rev=1331787&r1=1331786&r2=1331787&view=diff
==============================================================================
--- lucene/dev/trunk/dev-tools/scripts/checkJavaDocs.py (original)
+++ lucene/dev/trunk/dev-tools/scripts/checkJavaDocs.py Sat Apr 28 15:39:41 2012
@@ -58,6 +58,14 @@ def checkSummary(fullPath):
         printed = True
       print '  missing: %s' % unescapeHTML(m.group(1))
       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
   if desc is not None and fullPath.find('/overview-summary.html') == -1:
     raise RuntimeError('BUG: failed to locate description in %s' % fullPath)