I'm trying to get `IgnoredReturnValue` to flag all...
# detekt
e
I'm trying to get
IgnoredReturnValue
to flag all cases of discarded returns. Is this config correct? I can't seem to get it to work.. (Other rules configured in the same file are working)
Copy code
potential-bugs:
   IgnoredReturnValue:
      active: true
      restrictToConfig: false
      returnValueTypes:
         - '*'
g
Are you using Type Resolution?
e
Apparently not, I'm just using the
detekt
task from the gradle plugin 🙂
g
yeah I believe
IgnoredReturnValue
needs TR to work
e
what's the best way to get
./gradlew check
to run detekt with TR?
If you have anything cooked up already 🙂
b
You should make check to depend on
detektMain
and
detektTest
. And probably remove the dependency with the no type resolution one:
detekt