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

New Rule: Unnecessary Parenthesis #140

Closed
Blacksmoke16 opened this issue Mar 28, 2020 · 0 comments · Fixed by #301
Closed

New Rule: Unnecessary Parenthesis #140

Blacksmoke16 opened this issue Mar 28, 2020 · 0 comments · Fixed by #301
Assignees
Labels
Milestone

Comments

@Blacksmoke16
Copy link
Contributor

A helpful rule could be to identify unnecessary parenthesis.

E.x.

if (1 == 1)
end

They are required when assignments are involved, or for order of operations.

if (x = @x)
end
if true && (true || false)
end

Just a thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants