spotless
spotless copied to clipboard
Keep your code spotless
- [ ] 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...
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...
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...
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` | [](https://docs.renovatebot.com/merge-confidence/) | [](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...
WIP PR, closes #2183
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...
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...
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...