Skip to content
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

Squiz/ControlSignature: fix false positive with inline while() #2563

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Jul 21, 2019

The while()control structure is special cased to deal with do {} while(); syntax, but the special casing didn't allow for inline while() structures.

Includes unit tests.

Fixes #2562

The `while()`control structure is special cased to deal with `do {} while();` syntax, but the special casing didn't allow for inline `while()` structures.

Includes unit tests.

Fixes 2562
@gsherwood gsherwood added this to the 3.5.0 milestone Jul 21, 2019
@gsherwood gsherwood merged commit 5cf397d into squizlabs:master Jul 31, 2019
gsherwood added a commit that referenced this pull request Jul 31, 2019
@gsherwood
Copy link
Member

Thanks for the fix

@jrfnl jrfnl deleted the feature/2562-squiz-controlsignature-fix-false-positive-inline-controlstructure branch July 31, 2019 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inline WHILE triggers SpaceBeforeSemicolon incorrectly
2 participants