GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: add IntelliJ IDEA formatter by simschla · Pull Request #2535 · diffplug/spotless Conversation
Contributor
This PR is based on @IlyasYOY work in #2020 🙏 It adds IntelliJ IDEA as a formatter for both gradle- and maven-plugin. The implementation uses IntelliJ IDEA's formatting cli behind the scenes as intended by IntelliJ IDEA. To make sure the IntelliJ IDEA instance launched by spotless is not interfering with a already running instance, we specify separated paths for For development, I've introduced a way to override the idea binary in a I've tried adding a CI-step to let IDEA-tests run in CI. This part is untested and I'll work on it when the implementation is deemed feasible.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Thought of implementation plan, experimented with code dependencies using tests. Added parameterized method to call idea formatter. Used ForeignExe to check idea binary IDEA running using gradle IDEA running using maven As described here: diffplug#200 (comment) This part is lacking tests due to unpredictable nature of IDEA formatting. They may change configs thus breaking build. This object is now resides in IdeaStep …llij-formatter # Conflicts: # CHANGES.md # plugin-gradle/CHANGES.md # plugin-maven/CHANGES.md as it can handle various file formats besides java.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pull Request OverviewIntroduces support for using IntelliJ IDEA’s command-line formatter in Spotless, including both Maven and Gradle plugins, test harness enhancements, and CI integration.
Reviewed ChangesCopilot reviewed 24 out of 26 changed files in this pull request and generated 1 comment. Show a summary per file
Comments suppressed due to low confidence (3)plugin-maven/README.md:41
testlib/src/test/java/com/diffplug/spotless/generic/IdeaStepTest.java:82
testlib/src/test/java/com/diffplug/spotless/generic/IdeaStepTest.java:115
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
amazing feat thanks.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The implementation uses IntelliJ's command line interface for formatting. So no, there is no support for inspections atm. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Amazing! This LGTM. If you're happy with it too then press merge and I'll cut a release this week.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Awesome! I'll go ahead and merge it then 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Released in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.