jeremymailen / kotlinter-gradle

Painless, fast ktlint plugin for Gradle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Library is now coupled to editor config

CharlieTap opened this issue · comments

I don't actually have an editor config file and it would be great if I didn't have to add one. I was previously configuring rules using the disabled rules extension but now I'm forced to either stay on .13 or adopt .editor_config in my repository.

It's a design decision made by ktlint
https://pinterest.github.io/ktlint/install/cli/#rule-configuration-editorconfig
So the interface to the engine just allows for reliably setting which rule sets to load and not individual rule settings. I hear where you are coming from, but it's kinda the state of things and adding an editorconfig is not a bad idea. It will make sure whatever code editor you use agrees with ktlint and they don't fight with each other.

Fair I'll bite the bullet 👍🏼