4 ms·
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
by est31 6y ago
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.
- cheez 6y agothis is a solved problem, pin your packages.
- est31 6y agoBut 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.
- waheoo 6y agoI 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.
- cheez 6y agoSure. Most large teams do this on a 6 month basis or when it is needed to implement something. Again, a solved problem.
- zetafunction 6y agoChromium has a presubmit that enforces that code is autoformatted. However, it only enforces this for changed lines, and in practice, it works pretty well.