Re: pgsql: Fix perltidy breaking perlcritic

Поиск
Список
Период
Сортировка
От John Naylor
Тема Re: pgsql: Fix perltidy breaking perlcritic
Дата
Msg-id CAFBsxsG4yC4uUM6+fy=0RO0ZE6E=VRFJ6Eu6fBeairBUxtCunQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Fix perltidy breaking perlcritic  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: pgsql: Fix perltidy breaking perlcritic  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-committers
On Fri, Sep 9, 2022 at 3:32 AM Andrew Dunstan <andrew@dunslane.net> wrote:

> A better way do do this IMNSHO is to put the eval in a block on its own along with the no critic marker on its own
line,like this:
 
>
> {
>    ## no critic (ProhibitStringyEval)
>    eval ...
> }
>
> perlcritic respects block boundaries for its directives.

I tried that in the attached -- it looks a bit nicer but requires more
explanation. I don't have strong feelings either way.

-- 
John Naylor
EDB: http://www.enterprisedb.com

Вложения

В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: aix: No need to use mkldexport when we want to export all symbol
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: aix: No need to use mkldexport when we want to export all symbol