Re: CI: Add task that runs pgindent
| От | Nazir Bilal Yavuz | 
|---|---|
| Тема | Re: CI: Add task that runs pgindent | 
| Дата | |
| Msg-id | CAN55FZ1htZTESmDZu4VFek-zz1Z09j4swdHX_Z2V1zLau26W5g@mail.gmail.com обсуждение исходный текст  | 
		
| Ответ на | Re: CI: Add task that runs pgindent (Daniel Gustafsson <daniel@yesql.se>) | 
| Список | pgsql-hackers | 
Hi, On Tue, 21 Oct 2025 at 16:46, Daniel Gustafsson <daniel@yesql.se> wrote: > > > On 21 Oct 2025, at 15:39, Florents Tselai <florents.tselai@gmail.com> wrote: > > > > That wouldn’t preclude having a CI task as well, of course. > > The hook would mainly help contributors catch formatting issues locally, while the CI task would serve as a failsafefor committers. > > One common argument against enforcing proper indentation in submissions is that > it adds a barrier to entry, I think this patch targets two type of people, those who know how to run CI but: 1- Do not know how to run indentation checks 2- Forgot to run indentation checks For #1, perhaps we could print a note suggesting people check "src/tools/pgindent/README" when formatting fails. This might help lower the barrier. Though it is possible it could raise it instead, I am not entirely sure. For #2, I think this patch is clearly helpful. We can discuss if it is worth it to spend CI credits, though. -- Regards, Nazir Bilal Yavuz Microsoft
В списке pgsql-hackers по дате отправления: