spotless icon indicating copy to clipboard operation
spotless copied to clipboard

Keep your code spotless

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

Hello dear maintainers, I was setting up spotless in my project and while trying it out I started facing the below exception (which I already managed to fix). I got...

enhancement

I thought I'd help get #1274 done. This does only create a test case which uses `StepHarnessWithFile` to check roundtrip serialization for `NativeCmdStep`. Since the test doesn't fail, it seems...

Gradle 7.6.1 Spotless 6.25.0 Ubuntu 22.04 Java 11 or 17 Our code is: ``` import static foo.bar. FooClass.CONSTANT; ``` The import class package is very very long so it's broken...

### `spaceBeforeSeparator` setter in `JsonExtension` Hi, I was trying to set a custom value for `spaceBeforeSeparator` in Gradle Kotlin DSL, as shown in the Gradle plugin [example](https://github.com/diffplug/spotless/blob/main/plugin-gradle/README.md#jackson) for the Jackson...

If you are submitting a **bug**, please include the following: - [X] summary of problem - [X] Gradle or Maven version - [X] spotless version - [X] operating system and...

# Summary Maven plugin has no option `endWithNewLine` for `sortPom` in the current version (2.43.0) although README mentions it ([link to the jar here](https://repo1.maven.org/maven2/com/diffplug/spotless/spotless-maven-plugin/2.43.0/spotless-maven-plugin-2.43.0.jar)). I decopmpiled it and indeed, there...

Clicking on some of the links (given as xml comments) does not work, e.g., ``` ``` A space should be added between the url and `-->`.

bug

When running `gradle compileJava -xspotlessJava`, `spotlessApply` will still run. Since `spotlessApply` copies files from build/spotless/spotlessJava to the source tree, this can overwrite unsaved work in progress, making teams **lose valuable...

bug

Fixing #1984 (blindly) by re-creating the npmInstallCache directory if it is missing.

If you are submitting a **bug**, please include the following: - [x] summary of problem - Using the `-PspotlessSetLicenseHeaderYearsFromGitHistory=true` parameter to generate license headers with the creation year of the...