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
Simplify JavadocStyleCheck #7416
Comments
@rnveach ,
I think that all antlr based checks do this, as it is requirement of proper parsing. |
@romani I assume you are referring to https://checkstyle.sourceforge.io/writingjavadocchecks.html#Tight-HTML_rules . This violation is disabled by default. I don't know the validation JavadocStyleCheck does versus tight html to know if they are the same or not. I can definitely run regression to see if they are as another issue. If they do happen to be the same, or better, we could keep the check around and have it enable tight violation as the only thing it does. Are you ok with me to proceed with everything else and start issues for each one? |
yes , https://checkstyle.org/config_javadoc.html#SummaryJavadoc , property
please briefly take a look. It is kind does not matter .... we will not support custom parsing of HTML ... so if any diff exists it does not matter that much.
if you prove that usage |
Discussed offline and we will not add this property to SummaryJavadoc. If you write a javadoc, you should add a summary to it no matter it's scope. If tight html does same validation as current JavadocStyleCheck (4) we will just remove the check itself. |
@romani I updated the first post. Check does 5 things instead of 4. One of the extra things it does is check if there are any tags listed that are not allowed. checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java Lines 209 to 218 in 7c693cc
As for tight html, it does not look exactly the same as this check. checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java Lines 200 to 202 in 7c693cc
Since the 5th validation of this check isn't covered by anything else that I see, I don't think we can completely remove the check unless you want to split 4 and 5 into their own, separate checks. I am still for removing things 1 by 1 in a single issue. |
JavadocStyleCheck currently does 5 things, which are duplicates of other checks.
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java
Lines 326 to 349 in 7c693cc
1 is a duplicate of MissingJavadocPackage (Since 8.22).
2 is a duplicate of SummaryJavadoc (since 6.0) but doesn't have a scope restriction.
3 is a duplicate of MissingJavadocMethod (since 8.21) and MissingJavadocType (since 8.20).
4 and 5 are the only things unique to this check.
I say we start new issues to remove the duplicate functionality, and provide the missing functionality to the other checks. This will help identify what is left for this check to be converted to an AbstractJavadocCheck.
The text was updated successfully, but these errors were encountered: