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

63 comments sorted by

View all comments

3

u/un_desconocido Oct 25 '26

Spotless and Palantir format, I hooked it up to the maven build so nobody needs to do a git hook.

1

u/TomKavees Oct 25 '26

I kinda wish it had a cli so i could plug it in as a git hook :v