ktlint-intellij-plugin icon indicating copy to clipboard operation
ktlint-intellij-plugin copied to clipboard

Add method to supply rulesets via maven coordinates

Open zt64 opened this issue 3 months ago • 2 comments

I think that the current method of adding additional rulesets is really basic and it would be better if there was a way to provide the maven coordinates to a ruleset and then the plugin can handle downloading it

zt64 avatar May 03 '24 04:05 zt64

I think that the current method of adding additional rulesets is really basic and it would be better if there was a way to provide the maven coordinates to a ruleset and then the plugin can handle downloading it

Do you refer with current to the latest released version, or the current development version of the plugin? In next release, the plugin will bundle all Ktlint rulesets starting from version 0.50.0.

Download of ruleset via maven coordinates will not work, as external providers do not always expose their rulesets via maven.

paul-dingemans avatar May 03 '24 11:05 paul-dingemans

I mean like using external rules like in my case https://github.com/mrmans0n/compose-rules As for not all rulesets not providing maven they could fall back to supplying the ruleset jar manually

zt64 avatar May 03 '24 16:05 zt64

The compose ruleset is the perfect example why it won't work via download maven coordinates. the fat jar that you need is on published on the release page of the project and is not published as separate jar to maven as far as I know.

paul-dingemans avatar May 05 '24 09:05 paul-dingemans