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

.editorconfig editor recognize ktlint overrides

Open jasonab opened this issue 2 years ago • 3 comments

All the ktlint-specific overrides I have in my .editorconfig are underlined and show "the property is not supported." It would be nice if the plugin could recognize these overrides as legal, and even lint and autocomplete them.

e.g.: ktlint_experimental_block-comment-initial-star-alignment = enabled should be recognized

jasonab avatar Apr 07 '23 02:04 jasonab

That would be nice! I'll see if these are exposed from the library or documented in a way that I can provide support here.

nbadal avatar May 10 '23 18:05 nbadal

It looks like that the .editorconfig properties are hard coded into schema's that are included in the EditorConfig plugin which is provided via IntelliJ IDEA. I have created this YouTrack issue to get more information.

paul-dingemans avatar Oct 28 '23 14:10 paul-dingemans

There is no pogress at all on the YouTrack issue. For now, I would suggest to either ignore all warnings about invalid properties in the .editorconfig file. Or, if it bother you, to disable the inspection Unknown property (see below): Screenshot 2024-07-02 at 16 27 11

paul-dingemans avatar Jul 02 '24 14:07 paul-dingemans