-
-
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
Add Check Support for Java 21 Pattern Matching for Switch Syntax: NestedIfDepth #15036
Comments
@nrmancuso , @rnveach , I hope in scope of this issue we extend Inputs with such code. @mahfouz72 , you can probably instead of opening issues , just open PR to extend Inputs, merge of it will mean that we are ok with behavior. |
Problem with this is that users (and us) won't find this in the future. "Shouldn't we have supported x in this check?", search for issue, see explanation. |
I more about CI enforcement, one day in future such Input will help to catch some regression. It is all about diversity of Inputs, Check can have extra property and this diversity will be beneficial. |
You are conflating two completely different concepts:
We will continue to open issues to create a link for users and us between language features and checks, and will continue to create new test cases for most checks where we don’t need an update. It’s that simple. We will not exhaustively add test cases for every single thing. ROI is low for this. |
Let's add a simple test case for this one and move on. |
child of #14961
I have read check documentation:https://checkstyle.org/checks/coding/nestedifdepth.html
I have downloaded the latest checkstyle from: https://checkstyle.org/cmdline.html#Download_and_Run
I have executed the cli and showed it below, as cli describes the problem better than 1,000 words
Describe what you want in detail
when
can't be nested and nestedifs
in the switch blocks work correctly. We are ok here. This can be closed.The text was updated successfully, but these errors were encountered: