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

Currently, the spotless invocation is inlined into the task execution itself. https://github.com/diffplug/spotless/blob/main/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTaskImpl.java#L50 Is it possible to instead run a separate main file in `JavaExec`? Gradle has introduced toolchain feature to...

enhancement

### Summary In Gradle, all plugins share the same classpath. This makes it very hard, if not impossible, to use plugins which depend on different incompatible versions of the same...

enhancement

When formatting some JSF inside a `style` attribute, the formatter destroys the JSF by stripping the closing `}`. This happens on Gradle 6.4.1 with the plugin version 5.0.0 as well...

enhancement

While using spotless for Android, we run in to an issue where Android Studio line wrapping is overridden with spotless. There is no API exposed for changing this so that...

enhancement

### summary of problem After adding a custom task for yaml linting using prettier the task spotlessInternalRegisterDependencies does take from 10sec to more than 1min. This is the task definition:...

enhancement

Nashorn was removed in JDK 15, and freshmark [depends on it](https://github.com/diffplug/jscriptbox/blob/master/src/main/java/com/diffplug/jscriptbox/javascript/Nashorn.java#L42) so crashes. ``` Caused by: java.lang.RuntimeException: Error on line 21: Cannot invoke "javax.script.ScriptEngine.getContext()" because "jsEngine" is null at com.diffplug.freshmark.Parser$1ErrorFormatter.lambda$wrap$2(Parser.java:89)...

bug

We have the case of requiring multiple copyright years in our license headers for our source files. Example: ``` /* * (c) Copyright CompanyA Inc., 2010-2020 * (c) Copyright CompanyB...

enhancement

- [x] summary of problem I have been working on migrating a project to use spotless for license headers. The project hasn't been great on keeping license headers up to...

enhancement

Just a tracking issue for if/when 6.8 or higher becomes our baseline. Happy to take a PR which uses feature-detection to enable this now with whatever versions [we currently support](https://github.com/diffplug/spotless/tree/main/plugin-gradle#requirements)....

enhancement

Hello, So I already found a thread about the issue, but I fail to understand the solution. I understand that googleJavaFormat will not allow me to modify the length of...

question