Re: pg_createsubscriber TAP test wrapping makes command options hard to read. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_createsubscriber TAP test wrapping makes command options hard to read.
Date
Msg-id 556792.1733967676@sss.pgh.pa.us
Whole thread Raw
Responses Re: pg_createsubscriber TAP test wrapping makes command options hard to read.
List pgsql-hackers
Peter Smith <smithpb2250@gmail.com> writes:
> While reviewing a patch for another pg_createsubscriber thread I found
> that multiple TAP tests have a terrible wrapping where the command
> options and their associated oparg are separated on different lines
> instead of paired together nicely. This makes it unnecessarily
> difficult to see what the test is doing.

I think that is mostly the fault of pgperltidy.  We did change
the options we use with it awhile back, so maybe now it will honor
your manual changes to its line-wrapping choices.  But I wouldn't
bet on that.  Did you check what happens if you run the modified
code through pgperltidy?

(If the answer is bad, we could look into making further changes so
that pgperltidy won't override these decisions.  But there's no point
in manually patching this if it'll just get undone.)

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Add Postgres module info
Next
From: "Jonathan S. Katz"
Date:
Subject: Re: Add support to TLS 1.3 cipher suites and curves lists