Skip to content

How to annotate data class to get DefaultArgumentInterop for copy function? #29

Answered by FilipDolnik
xsveda asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Yeah, that's an oversight.

Unfortunately, I don't think we can quickly fix this. The current implementation for annotation configuration is quite limited in its capabilities, so adding support for this use case is not as simple as just allowing the annotation to be used with classes. We want to reimplement it but haven't gotten to it yet.

Before we add proper support, a workaround might be to use the Gradle configuration and use the fully qualified name of the class in the group name. However, that will select all functions in that class, so you might need to add the suppress annotations to other functions (if that is a problem in your case).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by FilipDolnik
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants