-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
JumpStatementsSpacing in switch
blocks.
#1610
Comments
Yes, I now have the following errors for the first two
|
I'm sorry I've read it bad that's why I've removed my comment. The error is expected and right. There's no settings to force behaviour you want. There should be one empty line before |
Thank you for confirming. I will exclude switch from JumpStatementSpacing for now, and try to write my own. I was hoping that |
It has precedence but |
I have the following rule definition:
My ideal switch statement is formatted as follows (the logic is nonsense, of course):
However, when I lint this, I get the following errors on the first two break statements:
This appears to be due to the setting:
However, that setting is needed, so that I can enforce an empty line before
return
,continue
, and so forth, outside of switch statements. Am I configuring this incorrectly?Possibly related, but haven't proven useful solutions (that I could find):
The text was updated successfully, but these errors were encountered: