kosi-libs / MocKMP

A mocking processor for Kotlin Multiplatform
https://kosi-libs.org/mockmp
MIT License
183 stars 12 forks source link

Weird interaction with ktlint #75

Open dalewking opened 4 months ago

dalewking commented 4 months ago

I don't know if you could figure this out but I ran into some really bizarre behavior that led me to not use this tool. The fault may be with ktlint and not this tool and I don't really have a way to reproduce.

We had been using Mockmp and Mockative in a module of the project. I was trying to switch to just MocKMP. Also I have several work trees via git worktree.

When I switched to just MockKMP in one work tree I was getting ktlint violations on generated code but bizarrely the files it was complaining about were in a different work tree. I even cleaned that other work tree and it still complained about those files that did not even exist.

Not sure this is helpful but thought I should report what I saw.