-
Notifications
You must be signed in to change notification settings - Fork 52
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 way to exclude generated classes implementing an annotated interface #332
Comments
Hi, An exception by inheritance can be added, but this will require a more flexible way of writing filters, which may be added sometime in the future. |
Yes I was mainly basing my excludes with suffixes but it's not 100% resilient (typo, rename, new architecture convention, etc). This is not a huge issue ATM, and if the DSL to configure is too hard to maintain / configure, this may be a bad idea. But would a more flexible way to add filters be considered, I hope "filtering by heritance of annotated interface" will make it. |
Relates #454 |
This task will be taken into account when migrating to Kotlin Gradle Plugin. In the future, it will be moved to the Kotlin task tracker, or closed if it loses relevance. |
What is your use-case and why do you need this feature?
On Android, Room uses DAO interfaces to generate SQL related code at compile time. Example:
ProjectDao.kt (source code)
ProjectDao_Impl.java (generated)
Describe the solution you'd like
I don't really know, maybe add a way to exclude classes that implement an annotated interface (
@Dao
in this case) ?Another solution would be to be able to ignore every class in the generated folder but I guess Kover doesn't have this kind of information available. Another solution would be to update Room in order to annotate their generated classes with
@Generated
, but I don't know if it's common for this kind of lib.The text was updated successfully, but these errors were encountered: