3 ms·
Why not just set up a rule to auto-format the code before it is committed so that nobody wastes time discussing formatting trivialities and the repo stays consi
by resters 2y ago
Why not just set up a rule to auto-format the code before it is committed so that nobody wastes time discussing formatting trivialities and the repo stays consistent?
- foobarian 2y agoIt would be fantastic if there was a good normal-form formatter I could use for local work, and let automation format the code back to lint style. Unfortunately with something like IntelliJ/Java the commit-time reformat is not reversible. Maybe google's Java formatter is, hmm.
- kcrwfrd_ 2y agoIn JavaScript land, prettier auto-formatting the code on file save is quite lovely. I would not be a fan of commit hook auto-formatting.