rules_kotlin
rules_kotlin copied to clipboard
Allow exclusions from Jacoco coverage
The current coverage instrumentation does not allow configurations for exclusions as compared to Maven or Gradle where we could declare an exclusion configuration to exclude classes via patterns/globs (example).
Looking at JacocoInstrumentation.kt, the compilation task creates an insturmented jar where a .uninstrumented file for each .class file are added into the output jar file and it seems to be possible to filter off based on a list of exclusion glob/pattern so that the .uninstrumented file isn't created.
So far, I am only able to hard code my list of exclusions in this JacocoInstrumentation.kt file and do not have a good idea on how to best approach in enabling the intended list to be passed in.
Is there plan to support exclusions or if somebody could guide me the best approach on how this list of coverage exclusions could be implemented?