hm, would it make sense to have a rule for definin...
# detekt
p
hm, would it make sense to have a rule for defining exception as object? I think stacktrace would not be correct, if I do following:
Copy code
object TitanicSinking : RuntimeException()

// somewhere else
throw TitanicSinking
I think that's what you are looking for, right?
p
yep, didn't notice that, cool
👍 1
hm, I actually have it enabled, but it didn't detect it. Will double check and submit bug report if needed
b
Do you use Type Solving?
p
not sure, where can I see that?
b
Do you run
detekt
or `detektMain`/`detektTest`?
p
just
detekt
b
That's the reason. That rule only works with type solving enabled: https://detekt.dev/docs/gettingstarted/type-resolution/
You will get a lot more findings enabling it but it is slower.
We should remove the "experimental tag" on it. We aren't going to break it. And if we do that we will do that on 2.0
p
I see, thanks!