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
JavadocUtil doesn't recognize Javadocs in certain places #6516
Comments
Regression: http://rveach.no-ip.org/checkstyle/regression/reports/231/ These are other false positives that I have seen so far: http://rveach.no-ip.org/checkstyle/regression/reports/231/lombok-ast/index.html#A3 http://rveach.no-ip.org/checkstyle/regression/reports/231/elasticsearch/index.html#A12 |
fix is merged. |
As stated in the PR, this wasn't the end to the issue. First regression was clouded with too many results. I wanted to rerun after the first merge to see if there was anymore cases. |
Regression: http://rveach.no-ip.org/checkstyle/regression/reports/236/ I reviewed almost all the violations and I didn't see anymore false positives. |
While looking into #5411 and verifying the statement I made:
I made a bare bones check to verify we recognize all valid javadoc placements.
InvalidJavadocPositionCheck
https://github.com/rnveach/checkstyle/commits/InvalidJavadocPositionCheck
I expected no violations from this check on Checkstyle's own sources but I get the following:
It looks like currently Checkstyle doesn't work with javadocs on methods with no modifiers and returns an array.
You can also see an example with:
There should be 2 violations as both are methods with the same javadoc.
I am going to run regression to see if there are any other cases.
Let me know if we should open another issue to add this check to Checkstyle. It is pretty simple.
The text was updated successfully, but these errors were encountered: