Hi Harald,
Every comment line above the packages declaration is considered as license
header by SonarQube. Therefore, these lines are not counted as comments.
See
http://nemo.sonarqube.org/drilldown/measures/48569?metric=comment_lines_density#for
example.
See
http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreIssuesto
deactivate the "Comment Density" rule on these package-info.java
files.
Regards,
*David RACODON | *
*SonarSource **Senior Consultant*
http://sonarsource.com
---------------------------------------------
Sign up to our newsletter
here<http://www.sonarsource.com/company/news/newsletter/>
!
---------------------------------------------
Post by Harald WellmannSonarQube 4.1.1 reports 0 % comment lines in my package-info.java,
although there is a lengthy Javadoc comment.
Is there a workaround, short of deactivating the Insufficient Comment
Density rule?
Best regards,
Harald
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email