[or-cvs] [tor/master 5/7] Add a rule to detect misplaced labels during check-spaces

nickm at torproject.org nickm at torproject.org
Mon Aug 16 03:43:14 UTC 2010


Author: Sebastian Hahn <sebastian at torproject.org>
Date: Mon, 16 Aug 2010 00:28:39 +0200
Subject: Add a rule to detect misplaced labels during check-spaces
Commit: a64e660f0e146d8530da74d74bc9c196e6ac21fe

---
 contrib/checkSpace.pl |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/contrib/checkSpace.pl b/contrib/checkSpace.pl
index b694abf..6eb32e5 100755
--- a/contrib/checkSpace.pl
+++ b/contrib/checkSpace.pl
@@ -20,6 +20,10 @@ for $fn (@ARGV) {
         if (/\t/) {
             print "      TAB:$fn:$.\n";
         }
+        ## Warn about markers that don't have a space in front of them
+        if (/^[a-zA-Z_][a-zA-Z_0-9]*:/) {
+            print "nosplabel:$fn:$.\n";
+        }
         ## Warn about trailing whitespace.
         if (/ +$/) {
             print "Space\@EOL:$fn:$.\n";
-- 
1.7.1




More information about the tor-commits mailing list