Re: Add --check option to pgindent - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Add --check option to pgindent
Date
Msg-id C2F4CA6C-0334-4BD1-B614-300F3B481A05@yesql.se
Whole thread Raw
In response to Add --check option to pgindent  ("Tristan Partin" <tristan@neon.tech>)
List pgsql-hackers
> On 12 Dec 2023, at 01:09, Tristan Partin <tristan@neon.tech> wrote:
>
> Not sold on the name, but --check is a combination of --silent-diff and --show-diff. I envision --check mostly being
usedin CI environments. I recently came across a situation where this behavior would have been useful. Without --check,
you'releft to capture the output of --show-diff and exit 2 if the output isn't empty by yourself. 

I haven’t studied the patch but I can see that being useful.

./daniel


pgsql-hackers by date:

Previous
From: "Tristan Partin"
Date:
Subject: Add --check option to pgindent
Next
From: Junwang Zhao
Date:
Subject: Re: Make COPY format extendable: Extract COPY TO format implementations