From: Jim Procter Date: Thu, 8 Sep 2016 13:50:32 +0000 (+0100) Subject: JAL-2119 count and report total invalid anchor links X-Git-Tag: Release_2_10_0~47^2~2^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6b4c1e884e67b8ae55eb0647e543c25457c99727;p=jalview.git JAL-2119 count and report total invalid anchor links --- diff --git a/utils/HelpLinksChecker.java b/utils/HelpLinksChecker.java index 1ad5322..5ba9097 100644 --- a/utils/HelpLinksChecker.java +++ b/utils/HelpLinksChecker.java @@ -34,6 +34,8 @@ public class HelpLinksChecker private int anchorRefCount = 0; + private int invalidAnchorRefCount = 0; + private int externalHrefCount = 0; private int invalidMapUrlCount = 0; @@ -192,6 +194,8 @@ public class HelpLinksChecker internalHrefCount, anchorRefCount)); System.out.println(invalidInternalHrefCount + " invalid internal href links"); + System.out.println(invalidAnchorRefCount + + " invalid internal anchor links"); System.out.println(externalHrefCount + " external href links"); if (internetAvailable) { @@ -269,6 +273,7 @@ public class HelpLinksChecker System.out.println(String.format( "Invalid anchor: %s at line %d of %s", anchor, lineNo, getPath(htmlFile))); + invalidAnchorRefCount++; } } }