https://kotlinlang.org logo
Title
e

eygraber

05/24/2023, 9:02 PM
Is there any way to disable the compiler plugin when running a build from the IDE? I haven't tested the compiler plugin yet, but my team has expressed concern that it'll slow velocity down by forcing them to address detekt violations when they're writing code quickly to test something (and will go back and fix violations at a later point in the development cycle)
m

mkrussel

05/24/2023, 9:58 PM
The simplest thing I can think of is to create a project flag that you pass in on the command line when you want to run it, then the IDE won't send it. You then wrap the applying to the plugin to the flag existing.
g

gammax

05/24/2023, 10:35 PM
The
detekt{}
block also has a boolean property that you can use to turn off the compiler plugin.