adding exclusion for 'link-text' false positives for XML comments
authorJonathan Blake <jonathan.blake@projectaon.org>
Sun, 11 Feb 2018 19:14:23 +0000 (19:14 +0000)
committerJonathan Blake <jonathan.blake@projectaon.org>
Sun, 11 Feb 2018 19:14:23 +0000 (19:14 +0000)
git-svn-id: https://projectaon.org/data/trunk@2672 f6f3e2d7-ff33-0410-aaf5-b4bee2cdac11

common/scripts/gblint.pl

index 69cc5d1..827a561 100755 (executable)
@@ -299,7 +299,7 @@ while( my $line = <> ) {
   }
 
   ##### Others
-  if( $line =~ m{<!--(?!/?ERRTAG)} ) { &printError( "ne", $currentSection, $lineNumber, "XML comment found (check for editor comments)" ); }
+  if( $line =~ m{<!--(?!/?(link-text|ERRTAG))} ) { &printError( "ne", $currentSection, $lineNumber, "XML comment found (check for editor comments)" ); }
   if( $line =~ /([[:upper:]]{5,})/ &&
       $` !~ /<signpost>$/ &&
       (($language eq 'en' &&