-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
false positive invalid tag JavadocType #16087
Comments
All logic is at https://github.com/checkstyle/checkstyle/blob/master/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTypeCheck.java#L154 It is Check, old Check, that doesn't use AST. But issue is valid, no violations are expected. |
For anyone else who finds this, I kinda solved it with the following suppression filter <module name="SuppressionSingleFilter">
<property name="checks" value="Javadoc(Method|Type)"/>
<!--[A-Z].* check is for java annotations inside code blocks inside javadocs-->
<property name="message" value="^Unknown tag '(${custom_javadoc_tags}|[A-Z].*)'.$"/>
</module>
|
hitting a similar issue after upgrading from it seems like content inside |
It should be. |
https://checkstyle.org/checks/javadoc/javadoctype.html#JavadocType
@Internal
and@Nullable
should not be reported as an unknown tag. It is inside a valid pre/code tag combo which is displayed correctly by the javadoc tool. You can see the rendered html below.The text was updated successfully, but these errors were encountered: