Re: [PATCH 2/2] syntax-check: mandate space after mid-line semicolon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/24/2013 07:19 PM, Eric Blake wrote:
> Enforce the style cleanup in the previous patch.
> 
> * build-aux/bracket-spacing.pl: Enforce trailing spacing.
> * cfg.mk (bracket-spacing-check): Tweak error wording.
> * docs/hacking.html.in: Document the rule.
> * HACKING: Regenerate.
> 
> Signed-off-by: Eric Blake <eblake@xxxxxxxxxx>
> ---
>  HACKING                      | 23 +++++++++++++++++++++++
>  build-aux/bracket-spacing.pl | 12 ++++++++++++
>  cfg.mk                       |  2 +-
>  docs/hacking.html.in         | 29 +++++++++++++++++++++++++++++
>  4 files changed, 65 insertions(+), 1 deletion(-)
> 
[...]
> diff --git a/build-aux/bracket-spacing.pl b/build-aux/bracket-spacing.pl
> index 2eeeeb4..de40040 100755
> --- a/build-aux/bracket-spacing.pl
> +++ b/build-aux/bracket-spacing.pl
> @@ -1,6 +1,7 @@
>  #!/usr/bin/perl
>  #
>  # bracket-spacing.pl: Report any usage of 'function (..args..)'
> +# Also check for other syntax issues, such as correct use of ';'
>  #
>  # This library is free software; you can redistribute it and/or
>  # modify it under the terms of the GNU Lesser General Public
> @@ -31,6 +32,9 @@ foreach my $file (@ARGV) {
>      while (defined (my $line = <FILE>)) {
>          my $data = $line;
> 
> +        # Kill any quoted ; or "
> +        $data =~ s,'[";]','X',g;
> +

Good catch, I didn't know this was missing.

[...]

ACK,

Martin

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]