Kotlin / kotlinx-kover

Apache License 2.0
1.25k stars 46 forks source link

Exclude companion object from report if it contains only constants #583

Closed shanshin closed 2 days ago

shanshin commented 1 month ago

Describe the bug Same as for regular object, companion object with only should be excluded from report

Expected behavior MyInterface should be excluded from report

Reproducer

interface MyInterface {
    companion object {
        const val constant = "foo"
    }
}

Reports

Screenshot 2024-03-26 at 20 25 06

Environment

shanshin commented 2 days ago

Fixed in 0.8.0