Hi folks. This is odd. I have Detekt setup on a ...
# detekt
l
Hi folks. This is odd. I have Detekt setup on a moderately sized app. I have baseline files I generated a few weeks ago. • If I run
gradlew detekt
, it reports no errors. • If i run
gradlew detektBaseline
, it regenerates my baseline files and both adds and removes entries. This implies there are errors according to baseline, but not to the main checker. • If I delete all of the items in one baseline file and rerun
detekt
, it reports no issues. But running
detektBaseline
did not remove any lines from that file, so baseline thinks they’re still issues. • If I then rerun
detektBaseline
, it re-adds the lines I just removed to the baseline file. It’s… like
detekt
is working in an entirely different world from baseline. Can anyone explain what’s going on?
b
I imagine that your configuration on the Detekt task and your configuration in the baseline task are different. For that reason they find different things.
l
Why would that be?
b
Well... I imagine because your detekt configuration is like that. I don't know. I'm general what you are reflecting is what should happen. And in all my projects it works like that.
l
I have only one detekt.yml in the whole project.
b
🤔 Interesting. Do you have a reproducer? What you are talking about shouldn't
l
(After lunch, bbiab.)
👍 1