mirror of https://gitee.com/openkylin/libvirt.git
check-spacing: fix error message
The check for whitespace before comma or semicolon referred to comma as colon.
This commit is contained in:
parent
cab2b44d8b
commit
3cc13e005d
|
@ -138,7 +138,7 @@ foreach my $file (@ARGV) {
|
||||||
if ($data =~ /\s[;,]/) {
|
if ($data =~ /\s[;,]/) {
|
||||||
unless ($data =~ /\S; ; / ||
|
unless ($data =~ /\S; ; / ||
|
||||||
$data =~ /^\s+;/) {
|
$data =~ /^\s+;/) {
|
||||||
print "Whitespace before (semi)colon:\n";
|
print "Whitespace before semicolon or comma:\n";
|
||||||
print "$file:$.: $line";
|
print "$file:$.: $line";
|
||||||
$ret = 1;
|
$ret = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue