-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Issue #15792: resolved false-negatives for CATCH #16629
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
Conversation
@Anmol202005 please generate a check regression report and share you analysis of any differences there. You can see one way to do this via GitHub actions here: https://github.com/checkstyle/contribution/tree/master/checkstyle-tester#report-generation |
GitHub, generate report |
Report generation failed on phase "make_report", |
GitHub, generate report |
@nrmancuso report generated. |
...com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/InputTryCatchIfElse.java
Show resolved
Hide resolved
...om/google/checkstyle/test/chapter4formatting/rule413emptyblocks/InputEmptyFinallyBlocks.java
Outdated
Show resolved
Hide resolved
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.
lgtm
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.
Looks good in general, one question:
</module> | ||
<module name="SuppressionXpathSingleFilter"> | ||
<!-- suppression is required till https://github.com/checkstyle/checkstyle/issues/7541 --> |
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.
Why is this comment removed?
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.
done. reverted it.
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.
Thank you!
Fixes #15792:
Added
LITERAL_CATCH
toRightCurlyAlone
and modified suppression forLITERAL_CATCH
Diff Regression config: https://gist.githubusercontent.com/Anmol202005/e48e363ffc2df699178e45d01c049d3a/raw/8ffe63016ffde2231bdfa9065041cbefc74a2916/check.xml