mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 02:09:24 +01:00
Add check for double-semi-colons at the end of a line
This commit is contained in:
parent
d6568bad5e
commit
f0e87ff9eb
@ -123,6 +123,10 @@ for my $fn (@ARGV) {
|
|||||||
if (/([^\s'])\{/) {
|
if (/([^\s'])\{/) {
|
||||||
msg " $1\{:$fn:$.\n";
|
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.
|
## Warn about multiple internal spaces.
|
||||||
#if (/[^\s,:]\s{2,}[^\s\\=]/) {
|
#if (/[^\s,:]\s{2,}[^\s\\=]/) {
|
||||||
# msg " X X:$fn:$.\n";
|
# msg " X X:$fn:$.\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user