Fitler for kotlinx.serialization

381 views
Skip to first unread message

Ben Asher

unread,
Aug 5, 2020, 8:16:00 PM8/5/20
to JaCoCo and EclEmma Users

Hi! We use kotlinx.serialization, which generates methods, which we don't use, on classes, which we do use. Is there some way to filter these out?

Ben

Marc Hoffmann

unread,
Aug 6, 2020, 2:08:45 AM8/6/20
to JaCoCo and EclEmma Users
Hi Ben,

there are a couple of filters which typically catch generated code. For example we filter all synthetic members or members which have @xxxGenerated annotation.

We work closely with the Kotlin project to improve interoperability between Kotlin and JaCoCo. Maybe you also start a thread on their side to see what they can do to properly flag the generated code.

Regards,
-marc


On 6. Aug 2020, at 02:16, 'Ben Asher' via JaCoCo and EclEmma Users <jac...@googlegroups.com> wrote:


Hi! We use kotlinx.serialization, which generates methods, which we don't use, on classes, which we do use. Is there some way to filter these out?

Ben

--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/b6dfb517-95b2-4162-9735-da650fb41ff1n%40googlegroups.com.

Ben Asher

unread,
Aug 6, 2020, 11:21:30 AM8/6/20
to JaCoCo and EclEmma Users
Done! If you have anything you'd like to add, the issue is here: https://github.com/Kotlin/kotlinx.serialization/issues/961.

Thanks,

Ben
Reply all
Reply to author
Forward
0 new messages