Skip to content

Add a lint for unnecessary parens on control flow statements. #11663

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

Closed
wants to merge 2 commits into from

Conversation

huonw
Copy link
Member

@huonw huonw commented Jan 19, 2014

The parens in if (true) {} are not necessary, so we'll warn about them.

cc #3070 and #11432

@alexcrichton
Copy link
Member

This is an awesome idea!

huonw added 2 commits January 21, 2014 21:58
The parens in `if (true) {}` are not not necessary, so we'll warn about
them.
bors added a commit that referenced this pull request Jan 21, 2014
The parens in `if (true) {}` are not necessary, so we'll warn about them.

cc #3070 and #11432
@bors bors closed this Jan 21, 2014
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