-
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
Regression in 2.41.0, no longer ignoring target/generated-sources #1914
Comments
Found the fix:
in the |
I tried to update my project to spotless-maven-plugin version 2.41.0 but it fails with:
I think that the |
Same issue in the Jenkins project — all our builds are now failing due to this regression.
Agreed. |
For anybody who has this problem, can you please
|
Ran into this issue on all my team's projects. I think I would prefer maintaining backwards compatible behavior. |
So sorry about this issue! Here's a revert PR: #1928. It does feel correct to restore the previous behavior. |
For an even better solution, I ever think of respecting gitignore configs. I implement a similar function in apache/skywalking-eyes#13. And plan to implement in a Java codebase https://github.com/korandoru/hawkeye/blob/main/hawkeye-core/src/main/java/io/korandoru/hawkeye/core/Selection.java with JGit. For your reference :D |
We went with a full revert to the previous behavior in |
Version 2.40.0 works without problems, switching to 2.41.0 fails the build due to formatting violations in code in
target/generated-sources
. Naturally, source code intarget
should not be checked for formatting violations.The Changelog mentions #1846 that is probably related, but I'm not sure what config option to use to fix the issue.
Spotless version is line 139 of the pom.xml
If you are submitting a bug, please include the following:
gradlew spotless[Apply/Check] --stacktrace
The text was updated successfully, but these errors were encountered: