spotless icon indicating copy to clipboard operation
spotless copied to clipboard

Keep your code spotless

Results 390 spotless issues
Sort by recently updated
recently updated
newest added

We have recently merged a ton of automated refactors, I believe some by OpenRewrite and some by error-prone. Right now we have: - spotless - spotbugs - errorprone - openrewrite...

Following the build, `StaticImport` has the potential to remove a lot of warnings, improving focus on the truly important stuff by moving the class context into `oblivion` using the static...

In the context of a GitHub Actions workflow, upgrading my Maven toolchain from single JDK to [Java matrix](https://github.com/actions/setup-java?tab=readme-ov-file#testing-against-different-java-versions), I'm experiencing what seems to be a bug affecting Spotless Maven plugin...

### Expected Behavior use Error Prone 2.43.0. related might later on use: - https://docs.openrewrite.org/recipes/java/migrate/upgradetojava21 - https://github.com/checkstyle/checkstyle/blob/0500cab4436f0b2759f5797800ef3e0073454a69/rewrite.yml#L15 - https://github.com/diffplug/spotless/pull/2756 ### Current Behavior (optional) _No response_ ### Context - https://github.com/google/error-prone/issues/5365 - https://github.com/gradle/gradle/issues/35768...

As part of writing up a post on [expected Gradle configuration performance](https://www.liutikas.net/2025/11/02/Unreasonable-Configuration.html) I found that com.diffplug.spotless causes 17 second regression in configuration performance [Androidify](https://github.com/android/androidify) Gradle project. Simply removing com.diffplug.spotless from...

bug

To reproduce: 1. Clone https://github.com/wiremock/wiremock 2. Create a worktree e.g. `git add worktree ../my-worktree` 3. `cd ../my-worktree` 4. `./gradlew check` The following exception is thrown: ``` Caused by: java.lang.IllegalArgumentException: Cannot...

bug

Use Gradle lazy APIs to defer configuration resolution. Provisioner cannot depend on Gradle APIs so I've created a wrapper for getting config files lazily

Hello Spotless team! We're very thankful for your work on this tool. Seeking review on a proposed feature that we are happy to help incorporate into the project if it...

enhancement

Similar to https://github.com/diffplug/spotless/issues/1147, I have a custom license header format which included the date when the file was created. This date is somewhat custom as well, it uses the format...

enhancement

Some formatters have idempotency bugs. Spotless has a [padded cell](https://github.com/diffplug/spotless/blob/main/PADDEDCELL.md) feature which can fix them. A long time ago, this feature was off by default. A user would get an...