mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-20 13:34:51 +01:00
Add a rule to detect misplaced labels during check-spaces
This commit is contained in:
parent
b2dcff5766
commit
a64e660f0e
1 changed files with 4 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue