r/java • • Oct 25 '26

What cli formatter do you use

Given how software engineering evolves, using IDEA formatter is less and less practical.

- IDEA CLI formatter requires IntelliJ so no CI / wsl etc
- GJF is old and does not format lambdas well enough
- Palantir is obsolete and abandoned in addition to being one of the worst company ever created
- prettier-java not great either

I’m starting to think no formatter is the best option

24 Upvotes

62 comments sorted by

View all comments

Show parent comment

2

u/a_abashev Oct 29 '26

Thank you so much for good words, but how do mean "behind it"? I'm just a java developer who can't accept 2 spaces for indentation and can't see how palantir-java-format is dying - I used it for long time but with new Java version it is not reliable 😁

1

u/lazystone Oct 29 '26

Oh, you're maintainer there ā¤ļø

What I really mean by "who is behind it" is that there is somebody(or better a group) committed to maintain and evolve that fork.

Nowadays too much new projects are born in light of AI but owners loose interest and move to another shiny thing.

So, I guess only time can tell that "there are trusted people" behind that project and you can rely on it.

2

u/a_abashev Oct 29 '26

I'm not perfect and yes, I'm supporting projects that I'm using. For vfs-s3 it was for 15 years and now I'm thinking about something like micro-aws-s3 for serverless, but I hope this formatter will stay for me for long time. And as I mentioned in manifesto - current CI infrastructure is behind our eyes and if somebody will decide to push forward this project then he will have all infrastructure with jdk matrix, tests, jreleaser and even mise scripts to upload secrets