Re: perlcritic and perltidy

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: perlcritic and perltidy
Дата
Msg-id fb4badd4-6ac5-9ce9-bc0f-af97c5a5363f@2ndQuadrant.com
обсуждение исходный текст
Ответ на Re: perlcritic and perltidy  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: perlcritic and perltidy  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers

On 05/08/2018 01:18 PM, Stephen Frost wrote:
> Andrew,
>
> * Andrew Dunstan (andrew.dunstan@2ndquadrant.com) wrote:
>> On 05/08/2018 12:51 PM, Stephen Frost wrote:
>>> * Andrew Dunstan (andrew.dunstan@2ndquadrant.com) wrote:
>>> There's not much point adding the ',' unless you're also putting the
>>> ');' on the next line, is there..?
>> No, not really.
>>
>>> Or is that going to be handled in a follow-up patch?
>> No, the current proposal is to keep the vertical tightness settings for
>> parentheses, which is precisely this set of cases, because otherwise
>> there are some ugly code efects (see Peter's email upthread)
>>
>> So I think we're all in agreement to fortget this trailing comma thing.
> Well, agreed, for parentheses, but for curly-brace blocks, it'd be nice to
> have them since those will end up on their own line, right?
>


Yes, but there isn't a perlcritic policy I can find that detects them
reliably. If you know of one we can revisit it. Specifically, the one
from the Pulp collection called RequireTrailingCommaAtNewline didn't
work very well when I tried it.

cheers

andrew

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



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: perlcritic and perltidy
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: perlcritic and perltidy