Ned Twigg
Ned Twigg
The Spotless IDE hook should *just* be `spotlessApply -PspotlessIdeHook=${ABSOLUTE_PATH_TO_FILE}`. We've had this API since `3.30.0`, and you shouldn't have to parse a Gradle or Spotless version to use it. But...
Right now we have `UNIX`, `WINDOWS`, `PLATFORM_NATIVE`, and our default `GIT_ATTRIBUTES`. These are all "content-blind", in that they can declare the line endings are without looking at the content of...
Right now, the IDE hook works like this ``` spotlessApply -PspotlessIdeHook=${ABSOLUTE_PATH_TO_FILE} ``` But for large multiproject projects we could make it significantly faster with (note the leading colon) ``` :spotlessApply...
The spotless IDE hook is incompatible with the configuration cache, see https://github.com/ragurney/spotless-intellij-gradle/issues/18 for an example and stacktrace. Workaround for now is to specify `--no-configuration-cache` when using `spotlessIdeHook`.
Per @rompic's great idea on [gitter](https://gitter.im/diffplug/spotless?at=5f230c503eef7e1ffe445f6c). https://github.com/jenkinsci/violation-comments-to-github-plugin
Right now, we integrate with node.js formatting tasks by finding a Node.js and NPM installation on the host machine - using npm to install the required formatter, usually prettier, which...
This should be pretty easy, you can follow the example of [`BlackStep`](https://github.com/diffplug/spotless/blob/main/lib/src/main/java/com/diffplug/spotless/python/BlackStep.java) and [`ClangFormatStep`](https://github.com/diffplug/spotless/blob/608e128381c89260f8a38fba985415c1f962ec7b/lib/src/main/java/com/diffplug/spotless/cpp/ClangFormatStep.java). See #672 for more details on how they work.
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)....
I use the `Object writeReplace() { return new SerializedForm(this) }` mechanism a fair bit, here's an example from guava: https://github.com/google/guava/blob/2278123479357836b9090b0e14bca8222c5b0459/guava/src/com/google/common/collect/ImmutableMap.java#L887-L924 If I do this: ```java FSTConfiguration config = FSTConfiguration.createJsonConfiguration(); String...
If you google "Jooby SSL", the top hit is - https://github.com/jooby-project/jooby/issues/186 Which links to - http://jooby.org/doc/#https Which doesn't have any info on https. I tried browsing the docs more broadly,...