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

MethodCallParentheses lacks exception for starting with uppercase letter #585

Closed
agrimm opened this issue Oct 25, 2013 · 1 comment
Closed

Comments

@agrimm
Copy link
Contributor

agrimm commented Oct 25, 2013

The following code triggers a MethodCallParentheses warning.

def Australia
  puts "G'day!"
end

Australia()

If the parentheses are removed, Ruby interprets Australia as a constant, and throws an exception. Rubocop should not treat parentheses are redundant here.

@bbatsov
Copy link
Collaborator

bbatsov commented Oct 25, 2013

Thanks for reporting this. I'll have it fixed.

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

No branches or pull requests

2 participants