Generated annotation#1539
Generated annotation#1539
Conversation
I guess all generated classes should get the annotation? Any reason why not? |
Nothing I am aware of, thanks for confirming :-) |
raboof
left a comment
There was a problem hiding this comment.
Maybe also ScalaServer/PowerApiTrait.scala.txt?
Otherwise LGTM. Would be good to actually test with JaCoCo, but I'd also be OK with merging and testing against the published snapshot
| return new Default@{service.name}Client(settings, sys); | ||
| } | ||
|
|
||
| @@AkkaGrpcGenerated |
There was a problem hiding this comment.
I'm not sure this is still necessary since it's an inner class of a class that is already annotated with AkkaGrpcGenerated, but cant hurt ;)
|
Added the annotation for all traits and tested locally with JaCoCo - all good. Now the only generated classes that are still in the report are based on the |
Great!
In some cases we might be able to tweak via https://scalapb.github.io/docs/customizations/#adding-annotations - but perhaps that's a 'next step' |
|
Maybe I misunderstood this but I think this has to be added directly into the proto files so that should be done by the end-user?! |
Yes, I think so, too. That might be fine, since it's the user who wants to run JaCoCo and optimize the reporting? |
|
@raboof Anything else you would like to see here? Or is this good to go? |
raboof
left a comment
There was a problem hiding this comment.
Thanks for the ping, looks good now indeed!
Open questions:
static classalso get this annotation?objectalso get this annotation?Fixes #1538