Replies: 1 comment
-
Some formatter steps have idempotence problems. Spotless fixes them automatically. Sometimes they cannot be fixed, in which case Spotless yells and says "run spotlessDiagnose to see why this is failing" https://github.com/diffplug/spotless/blob/main/PADDEDCELL.md |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When exploring the tasks for a Gradle project, the relevant tasks for Spotless are:
spotlessApply
is clear, and so isspotlessCheck
; however,spotlessDiagnose
lacks a description. IsspotlessDiagnose
really necessary? DoesspotlessCheck
also run all the checks and verifications thatspotlessDiagnose
performs?I'm trying to build a pipeline to check for formatting errors based on the Spotless configuration in question, but I'm unsure if
spotlessDiagnose
makes sense for a CI/CD workflow.It looks like
spotlessCheck
is intended to verify the formatting, whilespotlessDiagnose
may provide some information/diagnostics/insights into formatting issues?Beta Was this translation helpful? Give feedback.
All reactions