-
Notifications
You must be signed in to change notification settings - Fork 464
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
Ability to list all failing files with spotlessCheck #2418
Comments
Would you like to see just the filenames or their contents, too? |
@jbduncan The filenames should be enough 👍 like what is displayed today when we have less than 10 files |
@AchrafBelkahla Great, thanks for clarifying. I don't contribute to this repo as much as I used to, but I'm sure @nedtwigg wouldn't mind if you wanted to raise a PR. Having said that, we'll need to agree on an API for this. I only know the Gradle plugin, but I imagine we'd want something like: spotless {
maxFilesToReport(9999)
} We can always skip the Maven plugin until someone asks for this option there, too. What do you think, both? |
This would be perfect of course if approved by @nedtwigg |
Sorry for the long delay.
|
I'm fine with it being either a DSL change or a CLI flag (like Ned's suggestion for spotless {
showAllFailures()
} @AchrafBelkahla It seems that neither Ned nor I will have enough time to implement this, so feel free to raise a PR and to ask for help if you get stuck. :) |
Hello
Today running spotlessCheck allows the display of maximum 10 files as stated in :
spotless/lib-extra/src/main/java/com/diffplug/spotless/extra/integration/DiffMessageFormatter.java
Line 161 in 5a5db69
Example of logged error today :
For our projects, we need be able to see all files that are breaking the formatting.
Could we remove this limit or raise it ?
Thank you
The text was updated successfully, but these errors were encountered: