diff options
author | Edmund Wong <ewongbb@pw-wspx.org> | 2017-09-18 15:33:24 +0800 |
---|---|---|
committer | Edmund Wong <ewongbb@pw-wspx.org> | 2017-09-18 15:33:24 +0800 |
commit | f0e87ff9eb01ead1a959bd45bd8a3588479514c7 (patch) | |
tree | 63ba1c20be0504a911bbd930678e4c872a6cbbc6 /scripts | |
parent | d6568bad5e12af0e202f82c3ca86ae9aaeb443e4 (diff) | |
download | tor-f0e87ff9eb01ead1a959bd45bd8a3588479514c7.tar.gz tor-f0e87ff9eb01ead1a959bd45bd8a3588479514c7.zip |
Add check for double-semi-colons at the end of a line
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/maint/checkSpace.pl | 4 |
1 files changed, 4 insertions, 0 deletions
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"; |