-
Notifications
You must be signed in to change notification settings - Fork 193
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
Formatter ignores indent for if, for, while expressions #1221
Comments
fix building now; can you file a separate issue for the spaces concern |
Oh sure, sorry about mixing this up. Created a separated one: #1225 Thank you for working on that) |
Can you give the changes a try? |
Oh, so I'm using maven & spotless with 4.17.0 for greclipse and not quite sure how to run the changes... If you can give me a clue - I will be glad to test the changes) |
How is the groovy formatter included? |
I think this could help: https://github.com/diffplug/spotless/blob/main/plugin-maven/README.md#groovy |
It looks like you would create a local install of spotless-eclipse-groovy. The most recent targets Groovy-Eclipse 3.9.0. Snapshot builds are at 4.1.0 currently. |
Ok, thank you - will check how to do that) |
So, I actually started with spotless, found _ext/eclipse-groovy and probably the file that is links the groovy-eclipse version: https://github.com/diffplug/spotless/blob/main/_ext/eclipse-groovy/gradle.properties#L6 , so I tried to compile 4.1.0-SNAPSHOT as you recommended, but I tried to figure out what's happening in the repo and it's quite confusing, I did not found some build docs - so unfortunately I'm stuck here... |
Hello folks,
I use groovy-eclipse through spotless and during scan found it don't like the multiline expression blocks:
So the expression for some reason gets the same indent as "if".
Also I noticed that by default it's not removing duplicated spaces (
def call
) and I found no params to control that.The text was updated successfully, but these errors were encountered: