-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Issue #17514: New ANTLR Grammar for Javadoc Comments #17837
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
Issue #17514: New ANTLR Grammar for Javadoc Comments #17837
Conversation
|
Github, generate report for configs in PR description |
|
Report generation failed. Please check the logs for more details. |
|
Github, generate report |
|
Report generation failed on phase "make_report", |
|
Github, generate report |
1 similar comment
|
Github, generate report |
|
Report generation failed on phase "make_report", |
|
Github, generate report |
1 similar comment
|
Github, generate report |
85507a4 to
b7e082b
Compare
please fix false positives |
04a3c99 to
c9f2947
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please apply the same logic to most others in whitelist
| Fheader | ||
| fht | ||
| fieldannotations | ||
| Fieldname |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔ ~/github/romani/checkstyle [checkstyle-GSoC25/new-javadoc-grammar L|✔]
$ ag "Fieldname"
config/jsoref-spellchecker/whitelist.words
432:Fieldname
src/test/java/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheckTest.java
132: 29, "token recognition error at: '-'", "Fieldname"),
419: 29, "token recognition error at: '-'", "Fieldname"),
src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/abstractjavadoc/InputAbstractJavadocInvalidLexing.java
10: * @serialField Fieldname-fieldtype-fielddescription
13: // Details: token recognition error at: '-' while parsing Fieldname
src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/abstractjavadoc/InputAbstractJavadocNoWsBeforeDescriptionInJavadocTags.java
27: * @serialField Fieldname-fieldtype-fielddescription
30: // Details: token recognition error at: '-' while parsing Fieldname
35: * @serialField Fieldname fieldtype-fielddescription
40: * @serialField Fieldname -fieldtype -fielddescription
I think we can easily avoid this new word in while list.
Fieldname --> fieldName
| htdocs | ||
| html | ||
| HTMLJS | ||
| htmltags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔ ~/github/romani/checkstyle [checkstyle-GSoC25/new-javadoc-grammar L|✔]
$ ag -s "htmltags"
config/jsoref-spellchecker/whitelist.words
560:htmltags
src/test/java/com/puppycrawl/tools/checkstyle/grammar/javadoc/JavadocCommentsAstRegressionTest.java
40: return getPath("htmltags" + File.separator + filename);
can we use htmlTags ? we already have such folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a package name, we use all lowercase letters for package names across the codebase
| Popup | ||
| Postgresql | ||
| powershell | ||
| prc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔ ~/github/romani/checkstyle [checkstyle-GSoC25/new-javadoc-grammar L|✔]
$ ag -s "prc"
config/jsoref-spellchecker/whitelist.words
1099:prc
src/main/java/com/puppycrawl/tools/checkstyle/JavadocCommentsAstVisitor.java
153: if (tag instanceof ParserRuleContext prc) {
154: final Token tagName = (Token) prc.getChild(1).getPayload();
283: if (tagContent instanceof ParserRuleContext prc) {
284: final Token tagName = (Token) prc.getChild(0).getPayload();
ruleContext or context
|
GitHub, generate website |
4c0e4ff to
e65052c
Compare
6f3e470 to
77c774a
Compare
77c774a to
8dad8c7
Compare
|
GitHub, generate website |
|
Github, generate report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your hard work!!!!
I can not review all code changes, but it was reviewed by others, so let's move forward
Closes #17514
Related to: New ANTLR Grammar for Javadoc Comments Project - GSoC '25
Key Changes
AbstractJavadocChecksubclasses and Javadoc-related checks to work with the new AST.Impact
Testing
Diff Regression config: https://gist.githubusercontent.com/mahfouz72/5c0b5dccbeb20670915d5f8fe96e9527/raw/4c0abeb793315fd57facd9f2636ba1621e08b1e4/google_checks.xml
Diff Regression projects: https://gist.githubusercontent.com/mahfouz72/e175be6712b9073ad7340fdaa752fc4e/raw/b562141180075cab53efa10a46c8a3d5a1b3050c/projects-to-test-on.properties