mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
Make syntax check notice assignments w/o surrounding spaces.
This commit is contained in:
1 parent
721949059b
commit
a1cbe4b5a9
1 file changed
+8
@@ -144,6 +144,14 @@ foreach my $file (@ARGV) {
|
||||
$ret = 1;
|
||||
last;
|
||||
}
|
||||
|
||||
# Require spaces around assignment '=' and compounds
|
||||
while ($data =~ /[^!<>&|\-+*\/%\^'= ]=[^=]/ ||
|
||||
$data =~ /[^!<>&|\-+*\/%\^'=]=[^= \\\n]/) {
|
||||
print "$file:$.: $line";
|
||||
$ret = 1;
|
||||
last;
|
||||
}
|
||||
}
|
||||
close FILE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user