Hacker News new | past | comments | ask | show | jobs | submit login

Most autoformatters are under active development, and updates to them often causes changes in their behaviour. So you have to have all devs agree on the precise version of the formatter used, and even then you still need to do regular commits that contain nothing but a run of the newest version of the formatter on the codebase, which sadly destroys long term git blame.



Chromium has a presubmit that enforces that code is autoformatted. However, it only enforces this for changed lines, and in practice, it works pretty well.


this is a solved problem, pin your packages.


But you still have to update them every now and then otherwise you can't use new features of your language. Which gives you the issue of breakages again.


I dont think people want to hear that there are still problems with autoformatting text.

Anyway, my point still stands, drop rules about line length and rules that care about inter line break positions and most of these problems go away.


Sure. Most large teams do this on a 6 month basis or when it is needed to implement something. Again, a solved problem.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: