-
Notifications
You must be signed in to change notification settings - Fork 461
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
Add skip parameter to AbstractSpotlessMojo #366
Comments
I think this is probably a mistake. This means that your commit history is likely to include formatting errors, but spotless won't warn you. This is because you will commit a formatting error, but your CI will fix it before it runs the check, and tell you that everything is fine. See: #79 (comment) |
Hi @nedtwigg, No this is intended - I went from a simple check but it was a too bad flow for us - and it works fine. It can be that a commit includes a formatting like you describe but we have the same kind of things for doc so this issue is better than using check which was always failling due to diverse IDE setups. Overall speeding up apply is what i would like, skip is trivial to do but if check is fast enough, skipping apply when check succeeds can work too. |
That means that your commit history is dirty with formatting changes. That's not a big deal, perfectly reasonable to say "we don't care if history has formatting changes", in which case you should disable If you're going to always run |
I never run check but i cant skip apply which is my issue. |
By default, spotless adds It's possible I'm misunderstanding something, in which case I sincerely apologize for my mistake, but I think I've said everything I can on this topic. This project has 21 other watchers besides me, perhaps one of them will be able to help. If you're still unsatisfied with my response, I would recommend explaining your problem to a colleague, to see if they can read this thread and explain to me where my misunderstanding is. I'll read future replies to this, but as stated before, this is probably my last response. |
Well not sure what is unclear but let me try to rephrase it one last time: i want a spotless.apply.skip property in apply mojo. Then it matches the setup we decided to use and my dev workflow. |
Hi,
I have a build with spotless:apply active by default to enforce the formatting but I'd like to be able to bypass it in some cases, can you add a skip parameter to the apply mojo or the parent abstract mojo please?
Thanks,
Romain
The text was updated successfully, but these errors were encountered: