pgsql: Avoid criticizable perl code

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid criticizable perl code
Date: 2023-03-09 11:02:49
Message-ID: E1paE2r-002frd-85@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid criticizable perl code

Using `require` / `->import` instead of `use` avoids the use of a
"stringy eval", making for cleaner code that we don't need to silence
perlcritic about.

Per Andrew Dunstan

Discussion: https://postgr.es/m/7cd3bbbd-0216-4436-d571-8f80c9259a07@dunslane.net

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/590a075789b541d5c1a190031fdcf061355bcfbc

Modified Files
--------------
src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2023-03-09 11:03:56 Re: pgsql: 001_libpq_pipeline.pl: use Test::Differences if available
Previous Message Michael Paquier 2023-03-09 10:28:54 Re: pgsql: Run pgindent on libpq's fe-auth.c, fe-auth-scram.c and fe-connec