Re: perlcritic and perltidy

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: perlcritic and perltidy
Дата
Msg-id 9549.1525622014@sss.pgh.pa.us
обсуждение исходный текст
Ответ на perlcritic and perltidy  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Ответы Re: perlcritic and perltidy
Re: perlcritic and perltidy
Список pgsql-hackers
Andrew Dunstan <andrew.dunstan@2ndquadrant.com> writes:
> The attached patch allows a clean run from the following script adapted
> from pgperltidy:

I'm hardly a perl expert, but those changes look reasonable.

> w.r.t. perltidy, I note that our policy has these two lines:
>     --vertical-tightness=2
>     --vertical-tightness-closing=2
> I've been looking at syncing the buildfarm client with our core code
> perltidy settings. However, I don't actually like these two and I've
> decided to exercise some editorial discretion and not use them.

Okay ...

> Note that the perltidy man page does suggest that these can make things
> less readable, and it also states unequivocally "You must also use the
> -lp flag when you use the -vt flag". That is the --line-up-parentheses
> flag and it's something we don't use. Enabling it would generate about
> 12k lines of diff.

What sort of changes do we get if we remove those two flags as you prefer?
It'd help to see some examples.

Since we just went to a new perltidy version, and made some other
policy changes for it, in HEAD, it'd make sense to make any further
changes in this same release cycle rather than drip drip drip over
multiple cycles.  We just need to get some consensus about what
style we like.

            regards, tom lane


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

Предыдущее
От: Yura Sokolov
Дата:
Сообщение: Re: [HACKERS] Clock with Adaptive Replacement
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: perlcritic and perltidy