spotless
spotless copied to clipboard
IntelliJ formatter
Opened a draft of the https://github.com/diffplug/spotless/issues/200
Hope this looks fine!
I'd also considered adding IDEA step into Kotlin extension.
Or we could make it in the next PR.
The results looks strange, build fails on CI but locally everything is fine 🤔
gradle plugin-gradle:spotlessJavaCheck
I'd also considered adding IDEA step into Kotlin extension.
Or we could make it in the next PR.
I'd even consider adding this formatter to the generic FormatExtension as IntelliJ IDEA can format countless languages and is not restricted to Java and/or Kotlin. (Unless @nedtwigg has objections)
I'm having a hard time testing this locally. I added idea to my path which was tricky, tried to follow these
https://www.jetbrains.com/help/idea/command-line-formatter.html#8feaa497
But I'm getting Only one instance of IDEA can be run at a time.
I'm having a hard time testing this locally. I added
ideato my path which was tricky, tried to follow thesehttps://www.jetbrains.com/help/idea/command-line-formatter.html#8feaa497
But I'm getting
Only one instance of IDEA can be run at a time.
@nedtwigg I guess that's because of you running test from inside of IDEA. I myself using neovim so I obviously didn't face this problem. I guess this might be a blocker for those who use IDEA (almost everybody). Sorry, that I didn't thought gf this problem in advance, I should have had to.
That seems to be a (very old!) bug in IntelliJ :(
The listed workaround link no longer exists, but can be found on the web archive
Maybe this helps?
Any update on this one?