Re: run pgindent on a regular basis / scripted manner
От | Tom Lane |
---|---|
Тема | Re: run pgindent on a regular basis / scripted manner |
Дата | |
Msg-id | 469403.1597337416@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: run pgindent on a regular basis / scripted manner (Stephen Frost <sfrost@snowman.net>) |
Ответы |
Re: run pgindent on a regular basis / scripted manner
|
Список | pgsql-hackers |
Stephen Frost <sfrost@snowman.net> writes: > So, in our world, wouldn't this translate to 'make cfbot complain'? > I'm definitely a fan of the idea of having cfbot flag these and then we > maybe get to a point where it's not the committers dealing with fixing > patches that weren't pgindent'd properly, it's the actual patch > submitters being nagged about it... Meh. Asking all submitters to install pgindent is a bit of a burden. Moreover, sometimes it's better to provide a patch that deliberately hasn't reindented existing code, for ease of review (say, when you're adding if() { ... } around some big hunk of code). I think getting committers to do this as part of commit is a better workflow. (Admittedly, since I've been doing that for a long time, I don't find it to be a burden. I suppose some committers do.) regards, tom lane
В списке pgsql-hackers по дате отправления: