From 6b4c1e884e67b8ae55eb0647e543c25457c99727 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 8 Sep 2016 14:50:32 +0100 Subject: [PATCH] JAL-2119 count and report total invalid anchor links --- utils/HelpLinksChecker.java | 5 +++++ 1 file changed, 5 insertions(+) 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++; } } } -- 1.7.10.2