-
When exploring the tasks for a Gradle project, the relevant tasks for Spotless are: $ ./gradlew tasks
...
Verification tasks
------------------
check - Runs all checks.
spotlessApply - Applies code formatting steps to sourcecode in-place.
spotlessCheck - Checks that sourcecode satisfies formatting steps.
spotlessDiagnose
spotlessJava
spotlessJavaApply
spotlessJavaCheck
spotlessJavaDiagnose
spotlessKotlinGradle
spotlessKotlinGradleApply
spotlessKotlinGradleCheck
spotlessKotlinGradleDiagnose
...
I'm trying to build a pipeline to check for formatting errors based on the Spotless configuration in question, but I'm unsure if It looks like |
Beta Was this translation helpful? Give feedback.
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.
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