palantir / palantir-java-format

A modern, lambda-friendly, 120 character Java formatter.
Apache License 2.0
426 stars 45 forks source link

No options for 120 max length with 2 spaces #951

Open freerider7777 opened 10 months ago

freerider7777 commented 10 months ago

GOOGLE is good that is has 2 spaces (but 100 max length), PALANTIR is good that it has 120 length (but 4 spaces) - why not add 120 length with 2 spaces?

koppor commented 10 months ago

Maybe because of

increased consistency across all repos, so contributing to other projects feels familiar

Source: https://github.com/palantir/palantir-java-format#upsides-of-automatic-formatting


Some interesting links:

Nevertheless, I think, it's hard to change the Java codestyle rule of 1997.

freerider7777 commented 10 months ago

@koppor Thanks for the links. But as there are options as GOOGLE/PALANTIR/AOSP - why not make it configurable :)) We have corporate code style - so we need to recompile such plugins...

laglangyue commented 4 months ago

Can we support options for maxLength and spaces length ?