https://kotlinlang.org logo
#detekt
Title
# detekt
j

Javed Nissar

05/18/2022, 6:22 PM
Is there any reason to expect
detektBaselineMain
and
detektBaseline
to return different results? We're seeing that on our codebase. Specifically, in the sense that rules we've turned off are actually turned off in
detektBaseline
but do not seem to be turned off in
detektBaselineMain
g

gammax

05/18/2022, 6:38 PM
Mmm that's odd. Sounds like a bug at first. Could you create a small reproducer?
j

Javed Nissar

05/18/2022, 7:33 PM
I'll try to do that tomorrow 🙂
e

eygraber

05/18/2022, 8:41 PM
Does
detektBaselineMain
uses type resolution and the other doesn't?
g

gammax

05/18/2022, 9:47 PM
Yes that's correct. BaselineMain will use type resolution. However if you disable a rule in the config, that configuration should be honored regardless
7 Views