-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Solving parsing errors for missing description in block tags #13061
Comments
I am ok to ease parser as, no much people knows java doc syntax and we have to work after javac is passed but javadoc tool not executed yet. |
Few things here:
|
in general, yes. But lets imagine real life example of checkstyle usage. problem is that javadoc tool is almost never executed in dev cycle, as it is mostly for "assemble artifact" phase of build. Usually highly ignorable violations. if we ease a bit strictness of our parser, at least for cases what description might be absent. We at least not throw in user obscure error message. If we want to stay strict, we need to make error message to be clear for user, that will be another challenge. |
Yes. Our error messages should be consistent. Our Javadoc parsing errors appear as check errors as opposed to normal checkstyle exception message when parsing Java code. If you agree we can open a new issue on this. |
We can open issue on this, but I do not see easy way to make it, we don't have good parser error messages even in java parser. |
Fix is merged |
Base on discussion at #13043
We need to update grammar for @exception, @throws, @param so their arguments can be empty.
current grammar for exception and param tags:
https://github.com/checkstyle/checkstyle/blob/bd3c64badd4f1f7d58261af8dae9c40f9bf672b5/src/main/resources/com/puppycrawl/tools/checkstyle/grammar/javadoc/JavadocParser.g4#LL1144C1-L1148C56
current for throw tag:
https://github.com/checkstyle/checkstyle/blob/bd3c64badd4f1f7d58261af8dae9c40f9bf672b5/src/main/resources/com/puppycrawl/tools/checkstyle/grammar/javadoc/JavadocParser.g4#LL1165C1-L1167C1
CLI
Excepted:
Parser should be able to finish parsing without parser error.
The text was updated successfully, but these errors were encountered: