-
I'm running detekt using Configuration:
also:
Can it be configured to run every time? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes, you can achieve this using the As an alternative, you should be able to update your tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
outputs.upToDateWhen { false }
} That will cause only Detekt to re-run every time. As a side note, please note that this is the intended behavior. Detekt doesn't re-run as the analysis was already executed and you have the reports already available in the build folder. |
Beta Was this translation helpful? Give feedback.
-
You seem to have |
Beta Was this translation helpful? Give feedback.
Yes, you can achieve this using the
--rerun-tasks
flag when running detekt so./gradlew detektMain --rerun-tasks
.That would have the side effect of rerunning all the tasks, not only detekt (so can be quite expensive).
As an alternative, you should be able to update your
build.gradle.kts
you posted with:That will cause only Detekt to re-run every time.
As a side note, please note that this is the intended behavior. Detekt doesn't re-run as the analysis was already executed and you have the reports already available in the build folder.