Skip to content

Update PlaceCloseBrace rule behavior for NewLineAfter switch #784

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 2 commits into from
Jun 17, 2017

Conversation

kapilmb
Copy link

@kapilmb kapilmb commented Jun 17, 2017

Whenever the switch is set to false, we check if the following keyword is one of the branching statements (else, elseif, catch, finally) and if so then raise a violation. This makes the switch behavior exactly opposite to that of when it set to true.

Kapil Borle added 2 commits June 16, 2017 19:03
Whenever the switch is set to false, we check if the following keyword is one of the branching statements (else, elseif, catch, finally) and if so then raise a violation. This makes the switch behavior exactly opposite to that of when it set to true.
@kapilmb kapilmb changed the title Kapilmb/fix close brace rule Update PlaceCloseBrace rule behavior for NewLineAfter switch Jun 17, 2017
@kapilmb
Copy link
Author

kapilmb commented Jun 17, 2017

Thanks @daviwil

@kapilmb kapilmb merged commit bec2128 into development Jun 17, 2017
@kapilmb kapilmb deleted the kapilmb/fix-close-brace-rule branch June 17, 2017 19:55
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.

3 participants