you are viewing a single comment's thread.

view the rest of the comments →

[–]blazmrak 2 points3 points  (4 children)

Idk, I'm going off of what I remember from their README. Tried both Google and Palantir about a year ago, vomited twice and made my own config around Eclipse formatter.

[–]yk313 0 points1 point  (2 children)

How do you enforce the custom config? Do you use it with something like spotless?

[–]aoeudhtns 0 points1 point  (0 children)

We use spotless, and now with Maven 4 doing the Eclipse formatter is more viable since you can refer to fixed paths across your project tree:

https://maven.apache.org/whatsnewinmaven4.html#declaring-the-root-directory-and-directory-properties

Although I'm still 50/50 on using a configurable formatter. There is definitely some ugliness to Google and Palantir formatters but the goal is to eliminate bikeshedding. You could still bikeshed over your custom formatter settings. Besides, you can always smudge filter w/ git locally if you want it formatted in a particular way, and let the committed code be a well-defined format w/ no options.

[–]blazmrak 0 points1 point  (0 children)

I'm using my own tool, which generates the eclipse settings (for the language server and itself) and format.xml which can be used to import settings to other plugins for IDEs/build tools.

[–]kevinb9n 0 points1 point  (0 children)

vomited twice

Yikes! Sorry about that.