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

- [ ] summary of problem I’m working on a project with shell scripts and trying to add a copyright header that includes the year range from the Git history...

bug-unconfirmed

Hi :wave: if I am not mistaken, the Biome-Formatter in Spotless currently only supports formatting but doesn’t check or apply linting rules. It would be great if the integration could...

enhancement

I have some json files containing comments. It is currently impossible to format them using spotless and jackson. Formatting is failing mentioning that [JsonParser.Feature.ALLOW_COMMENTS](https://fasterxml.github.io/jackson-core/javadoc/2.8/com/fasterxml/jackson/core/JsonParser.Feature.html) should be enabled. There is currently...

enhancement

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.eclipse.jgit:org.eclipse.jgit](https://eclipse.gerrithub.io/admin/repos/eclipse-jgit/jgit) | `6.10.1.202505221210-r` -> `7.3.0.202506031305-r` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.eclipse.jgit:org.eclipse.jgit/7.3.0.202506031305-r?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.eclipse.jgit:org.eclipse.jgit/7.3.0.202506031305-r?slim=true)](https://docs.renovatebot.com/merge-confidence/)...

Fix #2271 Please **DO NOT FORCE PUSH**. Don't worry about messy history, it's easier to do code review if we can tell what happened after the review, and force pushing...

Currently the [lineEndings option](https://github.com/diffplug/spotless/tree/main/plugin-maven#line-endings-and-encodings-invisible-stuff) does only allow to configure which line endings to expect. There is no single option which works on non-Git based source code (i.e. extracted from a...

enhancement

This changes the implementation of the IDE hook to work with Gradle's configuration cache. Essentially, the old IDE hook implementation is deleted and the execution of the regular spotless task...

Currently adding a [custom plugin](https://github.com/diffplug/spotless/blob/main/CONTRIBUTING.md#how-to-add-a-new-plugin-for-a-build-system) requires adaptations to the Maven/Gradle plugin as a) [FormatterStepFactory](https://github.com/diffplug/spotless/blob/main/plugin-maven/src/main/java/com/diffplug/spotless/maven/FormatterStepFactory.java#L22) and b) [FormatterFactory](https://github.com/diffplug/spotless/blob/main/plugin-maven/src/main/java/com/diffplug/spotless/maven/FormatterFactory.java#L52) or [FormatExtension](https://github.com/diffplug/spotless/blob/b2a2cbb8b6026397c0adb8cb8b3571e399276f9b/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/FormatExtension.java#L79) are a) not build system agnostic and b) are not dynamically...

enhancement

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...

bug-unconfirmed