Re: Add BF member koel-like indentation checks to SanityCheck CI

Поиск
Список
Период
Сортировка
От Tristan Partin
Тема Re: Add BF member koel-like indentation checks to SanityCheck CI
Дата
Msg-id CYB6AV84VVDX.2PV7X14EX3J35@neon.tech
обсуждение исходный текст
Ответ на Re: Add BF member koel-like indentation checks to SanityCheck CI  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed Jan 10, 2024 at 1:58 AM CST, Tom Lane wrote:
> Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> writes:
> > IMO, running the
> > pgindent in at least one of the CI systems if not all (either as part
> > task SyanityCheck or task Linux - Debian Bullseye - Autoconf) help
> > catches things early on in CF bot runs itself. This saves committers
> > time but at the cost of free run-time that cirrus-ci provides.
>
> But that puts the burden of pgindent-cleanliness onto initial patch
> submitters, which I think is the wrong thing for reasons mentioned
> upthread.  We want to enforce this at commit into the master repo, but
> I fear enforcing it earlier will drive novice contributors away for
> no very good reason.

If we are worried about turning away novice contributors, there are much
bigger fish to fry than worrying if we will turn them away due to
requiring code to be formatted a certain way. Like I said earlier,
formatters are pretty common tools to be using these days. go fmt, deno
fmt, rustfmt, prettier, black, clang-format, uncrustify, etc.

Code formatting requirements are more likely to turn someone away from
contributing if code reviews are spent making numerous comments.
Luckily, we can just say "run this command line incantation of
pgindent," which in the grand scheme of things is easy compared to all
the other things you have to be aware of to contribute to Postgres.

--
Tristan Partin
Neon (https://neon.tech)



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

Предыдущее
От: Bernd Helmle
Дата:
Сообщение: Re: [PATCH] Add sortsupport for range types and btree_gist
Следующее
От: Bernd Helmle
Дата:
Сообщение: Re: [PATCH] Add sortsupport for range types and btree_gist