detekt / detekt

Static code analysis for Kotlin
https://detekt.dev
Apache License 2.0
6.1k stars 758 forks source link

ignoreFailures doesn't work when using gradle workers #7280

Open AlexanderGH opened 1 month ago

AlexanderGH commented 1 month ago

Expected Behavior

Enabling gradle workers in the Detekt Gradle should be a functional no-op. ignoreFailures = true should result in no failures even when there are violations.

Observed Behavior

All tasks with violations fail, even with ignoreFailures = true.

Steps to Reproduce

Enable detekt.use.worker.api = true, parallel = true, ignoreFailures = true. Add some violating code. Run ./gradlew detektDebug

Your Environment