Skip to content

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

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

Anmol202005
Copy link
Contributor

@Anmol202005 Anmol202005 commented Mar 22, 2025

Fixes #15792:

Added LITERAL_CATCH to RightCurlyAlone and modified suppression for LITERAL_CATCH

Diff Regression config: https://gist.githubusercontent.com/Anmol202005/e48e363ffc2df699178e45d01c049d3a/raw/8ffe63016ffde2231bdfa9065041cbefc74a2916/check.xml

@romani romani requested a review from nrmancuso March 22, 2025 22:25
@Anmol202005 Anmol202005 marked this pull request as draft March 23, 2025 11:15
@Anmol202005 Anmol202005 marked this pull request as ready for review March 23, 2025 12:10
@nrmancuso
Copy link
Member

@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

@Anmol202005
Copy link
Contributor Author

GitHub, generate report

Copy link
Contributor

Report generation failed on phase "make_report",
step "Generate report".
Link: https://github.com/checkstyle/checkstyle/actions/runs/14078461168

@Anmol202005 Anmol202005 marked this pull request as draft March 26, 2025 16:02
@Anmol202005 Anmol202005 marked this pull request as ready for review March 26, 2025 19:39
@Anmol202005
Copy link
Contributor Author

GitHub, generate report

Copy link
Contributor

@Anmol202005
Copy link
Contributor Author

@nrmancuso report generated.

Copy link
Contributor

@rdiachenko rdiachenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@nrmancuso nrmancuso left a 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 -->
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. reverted it.

Copy link
Member

@nrmancuso nrmancuso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@nrmancuso nrmancuso merged commit b24e789 into checkstyle:master Apr 15, 2025
115 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix false-negatives regarding LITERAL_CATCH to detect K&R Blocks in google_checks.xml
4 participants