Closed RahulSDeshpande closed 3 months ago
It is a risky strategy to pin your ktlint version to an ancient version, although I can understand your wish to prevent massive code formatting changes.
In this case you are forced to upgrade to 0.22 version as the newer versions of the Intellij IDEA deprecated/removed functionality used in the older plugin version. We try to keep the plugin working with the oldest possible version of the Intellij IDEA platform, but sometimes we are forced to raise the minimum required version.
In the upcoming version of the plugin, it will be possible to select a specific version of the ktlint
ruleset. This will also support the 0.50.0
version of ktlint. It is still a newer version than the one that was integrated in plugin version 0.13.0
but it might be accpetible to you. But do note, that there no guarrantee that this version will be kept supported in upcoming releases. You can already try out the beta version 0.23.0-beta-1.2024-05-19_16-14-58
(https://plugins.jetbrains.com/plugin/15057-ktlint/versions/beta).
Closed due to lack of response.
Hello @nbadal @paul-dingemans!
Background
I have been using Ktlint & your plugin since couple of years. In all my Kotlin projects, as a personal preference I stuck to the linting & formatting with the plugin version 0.13.0.
Problem
For all the later versions, my code was resulting in a major code reformatting because of the Ktlint enhancements. So I stuck to 0.13.0 for since then.
But the recent IDE versions
2023.3.1
+ are not supporting0.13.0
version, so had to upgrade to the latest plugin version0.22.0
. Which is again resulting into massive code reformatting.Solution
To avoid this I need to set the older version of Ktlint baseline to suit my preference. I tried, but I am not able to set it.
Can anyone please help me?
Details
My Android Studio config:
Any help is appreciated. Cheers. 👍🏼 🚀