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.
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.