nbadal / ktlint-intellij-plugin

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

Editor notification "Ktlint found ... lint violations.." shown in every project #555

Closed jansorg closed 2 months ago

jansorg commented 2 months ago

I installed the Ktlin plugin because ktlint is used in one project. It's not used in the other projects. Now in every kotlin file of every other project there's an editor notification panel saying "Ktlint found ... lint violations...". This doesn't seem to be from an inspection, so I can't disable this notification.

I know that I can turn this off via "Disabled" in the Ktlin settings. But this creates a ktlint project settings file, which I don't need or want. I'd really prefer if it wasn't enabled for every project by default when it's not possible to suppress the notification.

You could:

paul-dingemans commented 2 months ago

I'd really prefer if it wasn't enabled for every project by default when it's not possible to suppress the notification.

I appreciate the careful wording and suggestion below:

add an application-level settings

I can add a application-level setting like "Show banner when plugin is not initialized in project" which is enabled by default.

jansorg commented 2 months ago

Thanks! This would make it a setting I'd have to change only once.