[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Add check for double-semi-colons at the end of a line
commit f0e87ff9eb01ead1a959bd45bd8a3588479514c7
Author: Edmund Wong <ewongbb@xxxxxxxxxxx>
Date: Mon Sep 18 15:33:24 2017 +0800
Add check for double-semi-colons at the end of a line
---
scripts/maint/checkSpace.pl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl
index 37dcc98af..9929932cc 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";
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits