-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Spotless removes space before instanceof
in pattern match
#82794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Pinging @elastic/es-delivery (Team:Delivery) |
This looks to be a bug in eclipse-jdt. There's no explicit formatter setting for I was able to get the IDE to work as intended by configuring the IntelliJ Eclipse Formatter plugin to point to an Eclipse 2021.12 installation, so that at least confirms that version of eclipse-jdt works as intended. That said, we need both IDE and CLI to match otherwise folks will reformat in IntelliJ and spotless with complain or vice versa. We can open a PR for spotless for this but the IntelliJ plugin doesn't seem to use any kind of dependency management. I suspect the author has to download the updated libraries locally and rebuild. |
We aren't the only ones asking for this: diffplug/spotless#1059 |
This definitely triggers me as well. |
Spotless has finally updated, so we should now be able to address this issue. |
Fixes #82794. Upgrade the spotless plugin, which addresses the issue around formatting `instanceof` expressions. Formatting of statements including lambdas seems to have improved too.
Spotless does this:
An aesthetic thing for sure but I think it's better with the space than without.
The text was updated successfully, but these errors were encountered: