spotless
spotless copied to clipboard
Keep your code spotless
Sample repo that reproduces the issue: https://github.com/StefanLobbenmeierObjego/spotless-2646 This setup worked in spotless v7: ```build.gradle.kts import com.diffplug.gradle.spotless.SpotlessExtension configure { java { targetExclude(fileTree("${layout.buildDirectory}/generated") { include("**/*.java") }) palantirJavaFormat("2.38.0") } kotlinGradle { ktfmt().kotlinlangStyle() }...
I have prettier configured within a Maven `spotless-maven-plugin` block: ``` com.diffplug.spotless spotless-maven-plugin 2.44.3 **/*.ts ``` When I run `mvn spotless:verify`, I get an error: ``` [ERROR] Failed to execute goal...
All dependencies including these https://github.com/diffplug/spotless/blob/a0ac60042bb4470f9dd7992e11541ca37d025f75/lib/build.gradle#L73-L137
Generate build config for the versions like https://github.com/diffplug/spotless/blame/a0ac60042bb4470f9dd7992e11541ca37d025f75/lib/build.gradle#L99 And refer to the generated config for https://github.com/diffplug/spotless/blob/8d4cd28cb1ed3f2ebfd0e48cc8e5715ef65d6440/lib/src/main/java/com/diffplug/spotless/java/GoogleJavaFormatStep.java#L124 There is an example like https://github.com/vanniktech/gradle-maven-publish-plugin/blob/d0e50fec7a07ef91fde62ae5cb0e4b4b4769d797/plugin/build.gradle.kts#L35-L110 This should be stacked on #2704.
- it would be nice if our default versions were always the latest version - renovate opens PRs for us whenever a new version comes out, but we have to...
Often Markdown uses metadata in the format of [YAML front matter](https://jekyllrb.com/docs/front-matter/). This is supported e.g. via https://github.com/vsch/flexmark-java/wiki/Extensions#yaml-front-matter. However the markdown formatter currently destroys/reformats the tailing triple-dashed-line `---`.
One could be tempted to exclude a directory via `targetExclude`, e.g. `project.layout.buildDirectory` ```groovy spotless { scala { toggleOffOn() targetExclude(project.layout.buildDirectory) scalafmt('2.7.5').configFile(configPath + '/enforcement/spotless-scalafmt.conf') } } ``` However this doesn't work as...
I'm doing some replaceRegex rules and I'm attempting to replace some text with `` { }`` however the leading whitespace gets trimmed and doesn't get added. I've tried numerous work...
The currently available formatter for Markdown (Flexmark) is a bit intrusive for my taste, especially on tables. On the one hand, it might help to actually implement more of the...
I am looking at developing a VSCode plugin for Spotless that works with Maven. For performance reasons I want to use `mvnd` which is a daemon-based version of Maven, and...