summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-08-16 00:28:39 +0200
committerSebastian Hahn <sebastian@torproject.org>2010-08-16 00:46:44 +0200
commita64e660f0e146d8530da74d74bc9c196e6ac21fe (patch)
tree812e0c06a4c0d92e47060253f8b9edbe4ea08a98
parentb2dcff5766cdf33799659e667a06e109d17b6eb9 (diff)
downloadtor-a64e660f0e146d8530da74d74bc9c196e6ac21fe.tar.gz
tor-a64e660f0e146d8530da74d74bc9c196e6ac21fe.zip
Add a rule to detect misplaced labels during check-spaces
-rwxr-xr-xcontrib/checkSpace.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/checkSpace.pl b/contrib/checkSpace.pl
index b694abff64..6eb32e5620 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";