Skip to content

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

@shanshin

Description

@shanshin

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

  • Kover Gradle Plugin version: 0.7.6, 0.8.0-Beta

Metadata

Metadata

Assignees

Labels

BugBug issue type

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions