Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a report filter by parent class or interface #454

Closed
shanshin opened this issue Aug 18, 2023 · 2 comments · Fixed by #581
Closed

Add a report filter by parent class or interface #454

shanshin opened this issue Aug 18, 2023 · 2 comments · Fixed by #581
Assignees
Labels
Feature Feature request issue type

Comments

@shanshin
Copy link
Collaborator

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.

@shanshin shanshin added Feature Feature request issue type S: postponed Status: work on the issue is not in the short term plans labels Aug 18, 2023
@shanshin shanshin self-assigned this Aug 18, 2023
@zuevmaxim
Copy link

shanshin added a commit that referenced this issue Mar 22, 2024
The following report filtering features have been implemented:
- include filter by classes annotated with specified annotations
- include and exclude filters by classes that inherit the specified class or implement the specified interface

Resolves #274
Resolves #454
shanshin added a commit that referenced this issue May 1, 2024
The following report filtering features have been implemented:
- include filter by classes annotated with specified annotations
- include and exclude filters by classes that inherit the specified class or implement the specified interface

Resolves #274
Resolves #454
shanshin added a commit that referenced this issue May 4, 2024
The following report filtering features have been implemented:
- include filter by classes annotated with specified annotations
- include and exclude filters by classes that inherit the specified class or implement the specified interface

Resolves #274
Resolves #454
@shanshin shanshin added S: ready for release Status: merged in the main branch and removed S: postponed Status: work on the issue is not in the short term plans labels May 14, 2024
@shanshin shanshin reopened this May 14, 2024
@shanshin
Copy link
Collaborator Author

Implemented in 0.8.0

@shanshin shanshin removed the S: ready for release Status: merged in the main branch label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature request issue type
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants