Преглед на файлове

Add check for double-semi-colons at the end of a line

Edmund Wong преди 6 години
родител
ревизия
f0e87ff9eb
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      scripts/maint/checkSpace.pl

+ 4 - 0
scripts/maint/checkSpace.pl

@@ -123,6 +123,10 @@ for my $fn (@ARGV) {
             if (/([^\s'])\{/) {
                 msg "       $1\{:$fn:$.\n";
             }
+            ## Warn about double semi-colons at the end of a line.
+            if (/;;$/) {
+                msg "       double semi-colons at the end of $. in $fn\n"
+            }            
             ## Warn about multiple internal spaces.
             #if (/[^\s,:]\s{2,}[^\s\\=]/) {
             #    msg "     X  X:$fn:$.\n";