-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Make references optional for link and linkplain tags #13043
Comments
Same as with java code, we have limitations. If we would like to extend parser to operate on content that javadoc tool highlighted as problematic, we need to know why we need to do this. Please share how javadoc tool react on such doc comment content. |
I thought one more time in demand no error on javadoc..... It might be too strict. Please create separate issue on other tags that you think should be parable. |
Sorry but I didn't catch your point, do you mean we need to parse the missed parts even that will result an error in javadoc? or what? |
I mean if some java doc is missing description in block tag, and javadoc tool report error on such java doc comment, and checkstyle throw parsing error on such comment, we might need update parser to be able to finish parsing without parser error. |
@aayushRedHat, antrl issues are heavy, you can try, but do not hesitate to abandon PR is becomes too heavy. Better to slowly increase complexity of issues. |
Base on discussion at #12979
We need to update grammar for
{@link}, {@linkplain}
so their reference can be empty.CLI:
Excepted:
Have no parse error.
Current grammar:
https://github.com/checkstyle/checkstyle/blob/477006469777636d28ec4cfbc453a987e02a8fcc/src/main/resources/com/puppycrawl/tools/checkstyle/grammar/javadoc/JavadocParser.g4#LL1181C1-L1184C46
The text was updated successfully, but these errors were encountered: