Kotlin / kotlinx-kover

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a report filter by parent class or interface

shanshin opened this issue · comments

In some cases, it is convenient to exclude from the report all classes inherited from one parent, or implementing a specific interface.
This is more convenient than annotating several classes located in different packages, but inherited from the same parent.

A new filter type should be added to the DSL:

koverReport {
    filters {
        excludes {
            inheritedFrom("foo.ParentClass", "foo.Interface")
        }        
    }
}

The possibility of this filtering should be added to intellij-reporter.