Suitable formatter for Ebean #3700
soda-salie
started this conversation in
General
Replies: 1 comment 3 replies
-
|
The new formatting looks great! I usually format by hand and then wrap the code with some However, I have to say with all the recent supply chain attacks (e.g. Shai-Hulud NPM worm, GlassWorm via VSCode plugins and it seems also via some Github repos) I would never install a random upload as IDE plugin as it can do anything on my host. I think you really need a repo/fork so code changes can be seen/verified and the project can be built locally. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have tried different formatters for Java, not only regarding Ebean, but in general
Each of them had flaws with respect to some things, settled on Palantir, a fork of Google java format
He was the lesser of the evils, in general I like how he formats, another thing is that he formats the ORM Query in Ebean randomly, it's unreadable
And this applies to any formatter, not just Palantir
I have made several patches in the formatter regarding Ebean
Now instead of:
It formats like this
I'm still too lazy to make a separate repo, I would throw the whole garbage out of this project and leave only the plugin
So far, I'm just attaching a plugin file that can be uploaded to Intellij IDEA
I just want to share my best practices, I don't know if this has been done before me, I didn't find anything in the discussions and google group
Although I see beautifully formatted examples in the documentation, obviously I'm not the only one struggling with this)
I'm relatively new to Ebean, I really like this ORM, so I'm wondering what else can be improved in this regard, I'll be glad for advice)
palantir-java-format-59e4fcf.zip
Beta Was this translation helpful? Give feedback.
All reactions