So do you ignore your low code coverage numbers?
--
You received this message because you are subscribed to the Google
Groups group for http://projectlombok.org/
To post to this group, send email to project-lombok@googlegroups.com
To unsubscribe from this group, send email to
project-lombok+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/project-lombok?hl=en
Well, my current coverage is always over 80% when combined UTs and ITs...
On Sun, Jul 22, 2012 at 9:36 PM, Mike Power <mpower...@dodtsair.com> wrote:
So do you ignore your low code coverage numbers?
--
You received this message because you are subscribed to the Google
Groups group for http://projectlombok.org/
To post to this group, send email to project...@googlegroups.com
To unsubscribe from this group, send email to
--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
We could by default add this annotation to all the stuff we generate, but at that point we'd be adding 3 annotations to everything: SuppressWarnings, javax.annotation.Generated, and lombok.Generated. That's perhaps a bit much.
Still, having it means you don't have to make one, you can tell lombok to add it everywhere, and then findbugs, or cobertura, or whatever other relevant tool to ignore it everywhere.
If it had Runtime retention, would it mean we would need lombok at runtime now?
When I had originally talked about this I wanted to integrate it with jacoco. It might be useful to look at their feature request for an annotation implemented in their code. They have a number of the same concerns
https://github.com/jacoco/jacoco/issues/14
Awhile ago we talked about some fancy string literal comment stuff to make it easier to copy and paste large bodies of text into java. Jacoco had a similar idea of trying to use a comment for annotation.
Sent using CloudMagic
No, it just means that _if_ Lombok is on the classpath, you can figure out if a method was generated by it or not at runtime.
Sounds like a good idea, except for the notion that annotations can have parameters, and trying to parse these out of a config file is annoying.Would it be okay if lombok adds this feature, _BUT_, you cannot specify any parameters for the annotation? You can say that you want all generated code to be annotated with @com.whateveryouwant.AnnotationNameHere, but that's where it ends – you can NOT say that you want all generated code to be annotated with @com.whateveryouwant.AnnotationNameHere(param1="foobar", param2=Whatever.class).
And, of course, you would configure this in the config system, not in your source files.That wouldn't be too hard to add. Would that help?
Should lombok ship an annotation for this inside its own public packages? Something like lombok.Generated (and if we do, do we give it CLASS level retention or even runtime level)?We could by default add this annotation to all the stuff we generate, but at that point we'd be adding 3 annotations to everything: SuppressWarnings, javax.annotation.Generated, and lombok.Generated. That's perhaps a bit much. Still, having it means you don't have to make one, you can tell lombok to add it everywhere, and then findbugs, or cobertura, or whatever other relevant tool to ignore it everywhere.