nbadal / ktlint-intellij-plugin

Ktlint plugin for IntelliJ IDEA + Android Studio
MIT License
158 stars 24 forks source link

Add support for Gradle version catalog to determine ktlint version #283

Closed ZakTaccardi closed 2 months ago

ZakTaccardi commented 1 year ago

Would love to be able to programmatically set our ktlint version based on a value in our dependencies.toml file (version catalog)

nbadal commented 1 year ago

This seems to be the same idea as #35, but maybe specifically adding support for Gradle's version catalog so I'll keep this open as a feature request, but @ZakTaccardi you'll probably want to follow along with #35 first 😁

paul-dingemans commented 6 months ago

Next version (0.22.x) of plugin supports ktlint versions 0.50.0, 1.0.1, 1.1.1 and 1.2.1. Automatic detection and setting of ktlint version based on dependencies.toml will not be supported for now.

paul-dingemans commented 2 months ago

Closing. Configuration of the plugin should not be mixed with configuration of other build tools. It would also introduce complexity in case the plugin would not be used with a Gradle build.