On 18/12/2018 19:50, Robbie Harwood wrote: > Second, since the project does have a defined style checker, do you > think it would be possible to run it as part of cfbot and report errors?
pgindent is a code formatter, not a style checker. Using it to check whether just the newly added code is correctly formatted would probably require that all existing code is correctly formatted at all times, which isn't the case. What cfbot could do is spit out a diff at the end between the current code and the pgindent'ed version. That might be useful in some cases. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services