From: Edmund Wong Date: Mon, 18 Sep 2017 07:33:24 +0000 (+0800) Subject: Add check for double-semi-colons at the end of a line X-Git-Tag: tor-0.3.2.2-alpha~91^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0e87ff9eb01ead1a959bd45bd8a3588479514c7;p=thirdparty%2Ftor.git Add check for double-semi-colons at the end of a line --- diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl index 37dcc98af1..9929932cc5 100755 --- a/scripts/maint/checkSpace.pl +++ b/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";