Closed jdeebee closed 4 days ago
I accidentally noticed something. I get the warnings when I have a class with a custom annotation, as soon as I remove the annotation, the warnings are gone and my .editorconfig
seems to be respected.
Please provide an example that reproduces the problem. Both the Gradle Plugin and Ktlint Intellij plugin use the same rulesets when you have pinned them. It can however be that they use different versions of the KtlintRuleEngine. Typically this should not result in different results, but it might happen in a very specific situation. If you provide an example, I will check.
Closed due to lack of response.
I'm using ktlint Gradle plugin and have configured some ktlint rules in my project's
.editorconfig
file. This is a multi-module Android project, and I have installed the latest version of Intellij/IDEA plugin (0.24.1) and configured it to use the manual mode so that it respects my project's rules in the.editorconfig
file (which might be another issue by itself - I'd expect the distraction-free mode to also respect my configuration/rules). However, looks like I still get warnings (IDE highlights) for the rules I have disabled.P.S: I have pinned the version of
ktlint
used by the Gradle plugin to ensure compatibility between the IDE plugin and the Gradle plugin. Here's the relevant part of my root project's build script:And my project's
.editorconfig
:I wonder if I'm missing something or is this an actual bug. Thank you very much for looking into this potential issue. Appreciate it.