Ned Twigg

Results 639 comments of Ned Twigg

The PR referenced above (#193) is a very similar situation. To my knowledge, no workaround besides a PR.

This is likely a bug in the upstream https://github.com/groovy/groovy-eclipse We will keep this bug open until it is confirmed fixed, but you might want to report it upstream. Unfortunately, we...

Here's the code for anyone who wants to contribute a PR: https://github.com/diffplug/spotless/blob/b38ee5a7b9f47bfe6a38749a19d09a751044b6eb/lib/src/main/java/com/diffplug/spotless/kotlin/KtLintStep.java

Closing due to inactivity, happy to reopen on request.

No changes. Happy to take a PR for this feature, but as of now no one has plans to work on this.

Spotless is *just* a `Function`, and that's all (see [`CONTRIBUTING.md`](https://github.com/diffplug/spotless/blob/main/CONTRIBUTING.md)). - The fastest way to implement this is to pass a string to a JVM function, and get a string...

Now that #1012 has merged, it should be easier to build this if anybody wants to contribute a PR.

Fixing this will require a change to [`KtLintStep`](https://github.com/diffplug/spotless/blob/master/lib/src/main/java/com/diffplug/spotless/kotlin/KtLintStep.java) and [`KotlinGradleExtension`](https://github.com/diffplug/spotless/blob/master/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/KotlinGradleExtension.java). It will be necessary for the `.editorconfig` to be explicitly passed to spotless, e.g. ```gradle spotless { kotlin { ktlint().editorConfig('.editorconfig')...

Yep! That's why I linked to ScalaExtension.ScalaFmtConfig, because it is an example of that. I don't think it needs to necessarily be `.configFile()`, vs `.editorConfig()`. ktlint has multiple configuration options...