Re: Run pgindent now?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Run pgindent now?
Дата
Msg-id 55651167.9060007@gmx.net
обсуждение исходный текст
Ответ на Re: Run pgindent now?  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On 5/25/15 5:51 PM, Alvaro Herrera wrote:
> Tom Lane wrote:
> 
>> A longer-term fix would be to make pgindent less stupid about this sort
>> of usage, but nobody's yet volunteered to dig into the guts of that code.
> 
> We've discussed in the past that we could use something other than BSD's
> indent -- astyle has been mentioned.  It seems that with suitable
> options, we could make the result very close to what we have now, and
> not be forced to deal with typedef lists and other nonsense.

astyle looks like a decent tool, but it seems to me that it tends to
leave things alone that it doesn't have an explicit rule about.  So that
would leave a lot of room for formatting randomness from different authors.




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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Run pgindent now?
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: psql po translation update