Re: pgsql: Clean up Perl code according to perlcritic

From: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Clean up Perl code according to perlcritic
Date: 2017-03-28 00:54:47
Message-ID: dd153d5b-b676-4f38-4597-ad005c24f2c9@2ndQuadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 03/27/2017 08:23 AM, Peter Eisentraut wrote:
> Clean up Perl code according to perlcritic
>
> Fix all perlcritic warnings of severity level 5, except in
> src/backend/utils/Gen_dummy_probes.pl, which is automatically generated.
>
> Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
> Reviewed-by: Daniel Gustafsson <daniel(at)yesql(dot)se>

This contains at least one non-cosmetic change and the MSVC buildfarm
members have reacted accordingly:

@opts = grep {
- s/\Q$(top_builddir)\E/\"$topdir\"/;
- $_ !~ /\$\(/ && $_ =~ /^--/
+ my $x = $_;
+ $x =~ s/\Q$(top_builddir)\E/\"$topdir\"/;
+ $x !~ /\$\(/ && $x =~ /^--/

cheers

andrew

--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-03-28 00:58:53 Re: [COMMITTERS] pgsql: Clean up Perl code according to perlcritic
Previous Message Tom Lane 2017-03-28 00:14:41 pgsql: Show ignored constants as "$N" rather than "?" in pg_stat_statem

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2017-03-28 00:56:26 Re: Partitioning vs ON CONFLICT
Previous Message Craig Ringer 2017-03-28 00:51:26 Re: logical decoding of two-phase transactions