Details
-
Type:
Wish
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Hi guys,
I just discovered the promising javax.annotation.Generated annotation [1]. I think this could be a very good solution to allow easy configuration of all quality tools (findbugs, cobertura, pmd, checkstyle, ...) that have to ignore generated code.
I understand this is not only Sonar but all these tools that have to be updated to support this annotation. BTW I think it could be great to track here the progress on this area.
The best would be that code generators themselves automatically add the @Generated(value=SOURCE) to the class/method/attribute with the correct value (ie modello, wsdl2java, ...). This way we could configure Sonar to ignore all code generated by a specific list of source code generators.
It seems that JPA 2 will use @Generated on the metamodel classes used for the new Criteria API (see JSR 317 spec).
[1] http://java.sun.com/javase/6/docs/api/javax/annotation/Generated.html
Issue Links
- depends upon
-
SONAR-1760
Support the annotation "@SuppressWarnings" at class and method level
-
- is related to
-
SONAR-2236
Skipping auto-generated files
-