prestodb / presto

The official home of the Presto distributed SQL query engine for big data
http://prestodb.io
Apache License 2.0
15.75k stars 5.29k forks source link

Autoformat automatically and only automatically #22388

Open elharo opened 3 months ago

elharo commented 3 months ago

Don't waste humans' time on things machines can do. Adopt the go approach: every line of code is auto-formatted on build and checkin. Manual formatting is neither required nor allowed. Any rule that cannot be fully and correctly implemented by the auto-formatter is repealed.

tdcmeehan commented 3 months ago

I think autoformatting would be a great productivity booster for the project. We just need to settle on a tool, discover its limitations, and then decide if the limitations it has is acceptable for us to modify our style guidelines.