Re: run pgindent on a regular basis / scripted manner

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: run pgindent on a regular basis / scripted manner
Дата
Msg-id c613ae61-9575-8d40-5b9c-cf6c14fe0d14@dunslane.net
обсуждение исходный текст
Ответ на Re: run pgindent on a regular basis / scripted manner  (Étienne BERSAC <etienne.bersac@dalibo.com>)
Список pgsql-hackers
On 2023-10-27 Fr 03:14, Étienne BERSAC wrote:
> Hello,
>
>
>> Yes, there's a lot to look out for, and you're a damn sight better at
>> it
>> than I am. But we should try to automate the things that can be
>> automated, even if that leaves many tasks that can't be. I have three
>> things in my pre-commit hook: a check for catalog updates, a check
>> for
>> new typedefs, and an indent check.
> Could you share your configuration ? Could we provide more helper and
> integration to help produce consistent code ?


Sure. pre-commit hook file attached. I'm sure this could be improved on.


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com

Вложения

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

Предыдущее
От: Ashutosh Bapat
Дата:
Сообщение: Re: Infinite Interval
Следующее
От: Kirill Reshke
Дата:
Сообщение: Annoying corruption in PostgreSQL.