-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doclint #883
Doclint #883
Conversation
@stefanbirkner |
@stefanbirkner The point is to configure
With profiles
You can use -Xdoclint:html,syntax,accessibility,reference, and the number of issues is: Since the attribute |
@Tibor17 I rebased the branch. Obviously this deleted your comment. I create an issue for the Github team. |
@stefanbirkner When I tested my pom.xml, the compiler's config Did you test it with JDK8, are there any errors or warnings? |
Thanks for the hint about the group id of default plugins. I change it in the evening. The project is building without errors on JDK6, JDK7 and JDK8: https://travis-ci.org/stefanbirkner/junit/builds/23911515 Unfortunately Travis doesn't support JDK 5. |
@stefanbirkner
but the Can you fix it? |
Now javadoc verifies accessibility and reference. Thanks for finding this issue. |
With JDK 8, doclint has been added to Javac and Javadoc. It is enabled by default but it is too strict for JUnit. The only groups that don't report issues are accessibility, reference and syntax. But syntax has to be disabled for Javadoc because the Hamcrest classes are reporting syntax issues. Additionally doclint is disabled for JDK < 8, because the -Xdoclint argument causes a failing build in JDKs before JDK 8.
The build should fail for Javadoc issues.
The parameter compilerArguments is deprecated.
+1 |
This pull request is ready to be merged. |
LGTM! @kcooney Any objections? |
@marcphilipp no objections at all. @stefanbirkner Thanks for fixing the Javadoc! |
Thanks! |
Verify Javadoc with doclint. We only use the checks of the groups accessibility and reference, because all other groups report issues.