-
Notifications
You must be signed in to change notification settings - Fork 460
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
spotlessCheck sometimes fails even after running spotlessApply for googleJavaFormat #37
Comments
That is very surprising. Can you copy-paste the file in question and/or the spotless part of your |
Branch with the spotless plugin added: From build.gradle: spotless {
An array of package names
exported from Eclipse
"${rootProject.projectDir}/etc/eclipse-java-google-style.xml"
} On Oct 18, 2016 5:16 PM, "Ned Twigg" notifications@github.com wrote:
|
If it helps, here is the formatter: Here is the class not being formatted correctly: And here is the build.gradle: |
I just duplicated your issue. You're using version I'm not sure what went wrong, and I'm curious to find out, but there's been a lot of improvements since Btw, if you want the "canonical" google style, and you don't care about the eclipse code formatter, you might want to take a look at this section of the readme. |
Fantastic, thank you so much! |
By the way, when I bumped to the latest version it worked with the Google Java Style eclipse XML. But when I tried switching to googleJavaStyle() I had the same issue (with different files) where spotlessCheck would fail directly after spotlessApply. |
Thanks very much for letting me know, I'll dig in! |
After a little digging, I've traced this to a bug in the |
Cool! By the way, the Apache Geode community started using Spotless to enforce code formatting as of this afternoon :) |
Just wanted to let you know that I used your case of I've filed a bug with google-java-format, so hopefully they'll be able to fix it in a future release. Is it alright if I list apache-geode as an example project in the README? |
Hi,
I want to add the spotless plugin pointed to the Eclipse Google Java Style Guide xml, but right now spotlessCheck fails for one file in my project even if I run it directly after spotlessApply. Is there any way to see what it thinks is wrong with the file?
Thank you!
The text was updated successfully, but these errors were encountered: