mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
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…
x
Reference in New Issue
Block a user