Is there a way to exclude from `detektMain` task, ...
# detekt
e
Is there a way to exclude from
detektMain
task, but not
detekt
task? Several files are causing detekt to crash when I run
detektMain
but not
detekt
. Detekt 1.22.0, Kotlin 1.8.21, AWS Corretto 17
Looks like nearly all the issues are the same:
Copy code
io.gitlab.arturbosch.detekt.rules.bugs.IgnoredReturnValue.visitCallExpression(IgnoredReturnValue.kt:98)
  The original exception message was: 'boolean org.jetbrains.kotlin.resolve.bindingContextUtil.BindingContextUtilsKt.isUsedAsExpression(org.jetbrains.kotlin.psi.KtExpression, org.jetbrains.kotlin.resolve.BindingContext)'
b
Could you open an issue with a reproducer? That looks like an issue on detekt.
And what do you want to exclude? Files? Rules?
e
Sorry, missed the notifications. I think a reproducer would just be a suspend function. That ignored return value error was happening only on suspend funs.