-
-
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
Issue #14573: fix javadoc type check for empty tags #14882
base: master
Are you sure you want to change the base?
Conversation
7d0b256
to
04b714c
Compare
04b714c
to
e5f329e
Compare
Github, generate report |
There are cases like this https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/e5f329e_2024235419/reports/diff/spotbugs/index.html#A1, when annotation is considered as tag. In theory, we can analyse context and ignore text inside |
Problem is in BlockTagUtil#extractBlockTags, it does not take context into consideration. There are 2 possible solutions:
|
This Check is not AST based, so amount of problems in this Check is uncountable and we will never fix them. We need to migrate to AST. Without migration, we just need to make sure that diff report is decently ok or better then before in behavior |
it seems ok to me if we ignore cases with code snippets with annotations in javadocs |
this is too much, we can NOT implSpec, apiNote to known tags in this Check in config.
How complicated to add this ? User do not heavily like false positives, and "ok" with false-negatives, especially in javadoc. |
This is where extra property is requested #14724 (comment) it will ease a problem, but it is separate issue. |
Closes #14573
Diff Regression config: https://gist.githubusercontent.com/strkkk/26466254f89c32d8f1a6bd53b6f5b251/raw/cf451b3aa6366addc027a08423786d455bc79aa7/config_single.xml