detekt / detekt-intellij-plugin

detekt plugin for IntelliJ
https://plugins.jetbrains.com/plugin/10761-detekt
Apache License 2.0
299 stars 39 forks source link

Allow Detekt IJ Plugin to be opt-in, per-project #479

Closed rock3r closed 1 year ago

rock3r commented 1 year ago

Right now when you have the plugin installed it always turns itself on whenever you open a new project. Instead, it should prompt you if you want to enable it, once per new project (unless it was already enabled or asked about enabling before).

This alleviates the pain of having detekt checks polluting the editor for projects that don't adopt it.

This is relatively easily implemented by having a project-scoped configurable that stores the "question popped" flag. We can also assume that if there is already a detekt.xml file in the project, the user willingly enabled it and we can simply not ask again.