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
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Link |
This issue depends upon |
| Assignee | Freddy Mallet [ freddy.mallet ] |
| Assignee | Freddy Mallet [ freddy.mallet ] |
| Link |
This issue is related to |
| Component/s | Copy&Paste [ 13876 ] |
| Component/s | Rules [ 14724 ] | |
| Component/s | Coding Rules [ 13207 ] |
| Project | Sonar [ 11694 ] | Sonar Java [ 12830 ] |
| Key | SONAR-1042 | SONARJAVA-71 |
| Component/s | Metrics [ 13103 ] | |
| Component/s | Source code viewer [ 13208 ] | |
| Component/s | Java [ 13541 ] | |
| Component/s | Findbugs [ 13738 ] | |
| Component/s | Cobertura [ 13873 ] | |
| Component/s | Duplications [ 13913 ] | |
| Component/s | PMD [ 13962 ] | |
| Component/s | Rules [ 14724 ] |
Thanks for this information Julien !