Re: perlcritic: prohibit map and grep in void conext

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: perlcritic: prohibit map and grep in void conext
Дата
Msg-id B10A5F4F-ACB6-4B47-9E96-7855FEB0AEB5@yesql.se
обсуждение исходный текст
Ответ на perlcritic: prohibit map and grep in void conext  (ilmari@ilmari.org (Dagfinn Ilmari Mannsåker))
Список pgsql-hackers
> On 27 Jul 2021, at 18:06, Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> wrote:

> Attached is a patch that increases severity of that and the
> corresponding `grep` policy to 5 to enable it in our perlcritic policy,
> and fixes the one use that had already snuck in.

+1, the use of foreach also improves readability a fair bit IMO.

--
Daniel Gustafsson        https://vmware.com/




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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: RFC: Logging plan of the running query
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Have I found an interval arithmetic bug?