Can I see issues in java files with the annotation javax.annotation.Generated?
I have tried to analyse a java file with the Generated annotation, but SonarQube don’t display a issue (code smell) that the file contains.
I have seen in the official documentation, that there are a way to exclude the issues in files with @Generated:
You can have SonarQube ignore issues on certain components and against certain coding rules. Go to Administration > General Settings > Analysis Scope > Issues .
Note that the properties below can only be set through the web interface because they are multi-valued.
Ignore Issues on Files
You can ignore all issues on files that contain a block of code matching a given regular expression.
- Ignore all issues in files containing “javax.annotation.Generated”
For this, I can understand that, if I leave blank the field “Ignore issues on files”, SonarQube should show the issues of the java files allthough it has @Generated annotations.
I have realized the test with a SonarQube 7.9.1 instance
It’s a bug?
There are no way to show issues of java.annotation.Generated code?