-
-
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
yield
fails Indentation check in switch expressions
#15967
Comments
@nickelaway thanks for the detailed report, issue is approved |
Hi @nickelaway, I want to contribute to this issue could you please assign it to me ? |
@Karim-Ashraf1 we do not typically assign issues, please see our contribution documentation for how to get started. |
@Karim-Ashraf1 are you on it? |
If no PR sent, it means not in progress. Everyone can take it. |
I am currently not working on it you can take it bro |
…trictCondition fix
…trictCondition fix
…trictCondition fix
…trictCondition fix
…trictCondition fix
…trictCondition fix
…trictCondition fix
…trictCondition fix
Thank you @mohitsatr for the fix 🙂 |
I have read check documentation: https://checkstyle.sourceforge.io/checks/misc/indentation.html
I have downloaded the latest cli 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
The Indentation check rejects all
yield
statements in switch expressions whenforceStrictCondition
is set to true. In the example above, it rejects anything that is not 12, saying 12 is the correct level. If you set the indentation level to 12, it rejects it saying it should be 16.This is also inconsistent with the required indentation level for other statements, which require an indentation of 16.
I would expect 16 to be accepted as the correct indentation for all of these statements.
The text was updated successfully, but these errors were encountered: