IntelliJ/ AS-Plugin configuration via a file
See original GitHub issueIntelliJ Plugin understanding
As I understand it by looking through the code, when using the IntelliJ/ AS-Plugin there are 4 code options to be selected to re-format my code. If I were to configure the line length to 120 in the gradle plugin, the IntelliJ/ AS-Plugin would reformat differently and I would have to call ktfmtFormat
by hand in order to passe the quality gate set by ktfmtCheck
.
Feature Request
In order to sync the IntelliJ/ AS-Plugin with the Gradle-settings I would like to introduce a Gradle-task, which will write a File with all set settings. In turn this file can be checked in and loaded by the IntelliJ/ AS-Plugin. This will ensure that Gradle and IntelliJ/ AS will format in the same way.
If the authors of this tool see it as a beneficial addition, I would try to implement it in the Gradle and IntelliJ/ AS-Plugin.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Makes sense 👍 Then @SergejIsbrecht probably the safest approach for you would be to setup your own machinery to share some config, perhaps using environment variables or
.properties
files.@cortinico,
I can do that, but how will the AS-Plugin know which file to load? I may as well fork the AS-Plugin, but I actually do not want to cherry-pick the changes from main-line to my fork.
I think it is quite strange that the Gradle-Plugin (max line len) is configurable but the AS-Plugin is not.