Open GoogleCodeExporter opened 9 years ago
About the converting the if one-liners to blocks; will do, but not in 0.10.0.
About everything else: we add SuppressWarnings("all"). PMD should respect that.
In fact, _any_ inclusion of anything lombok does in any code metric is silly,
however @SuppressWarnings("all") and the idea 'this is generated code' don't
overlap perfectly. There's unfortunately no @java.lang.Generated (yet).
Nevertheless, in PMD's case it is a tool that creates warnings for your code
and therefore it is very obvious to us that we've done all we should do here.
To be specific, we will not clean up the code generated by lombok just to
satisfy style checker rules, for a very simple reason: Everybody has their own
rules, and conflicts are likely, where we simply can't make everybody happy.
Accepted only for if-blocks.
Original comment by r.spilker
on 8 Aug 2011 at 7:41
Just curious: Why would you run PMD on the generated source instead of the real
source?
Original comment by Lord.Qua...@gmail.com
on 9 Aug 2011 at 3:28
Because then you end up with lots of other issues. For example, if you are
using @Data to generate getters and setters, PMD will complain that fields are
unreferenced (because it does not see the public getField and setField).
Original comment by anth...@whitford.com
on 19 Aug 2011 at 4:30
I discovered a nice workaround for PMD 5, and documented it in my blog:
http://anthonywhitford.blogspot.com/2013/09/suppressing-pmd-alerts-for-lombok.ht
ml
Original comment by anth...@whitford.com
on 22 Sep 2013 at 4:50
Original issue reported on code.google.com by
anth...@whitford.com
on 8 Aug 2011 at 5:30