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

Allow parens for optional keyword value calls in Style/MethodCallWithArgsParentheses #6765

Merged
merged 1 commit into from
Feb 17, 2019

Conversation

gsamokovarov
Copy link
Contributor

Yet-another-edge-case for the omit_parentheses style.


Before:

def foo(bar: baz(42))
                ^^^^ Omit parentheses for method calls with arguments.
end

After:

def foo(bar: baz(42))
end

@koic
Copy link
Member

koic commented Feb 15, 2019

This looks good 🌟 Would you add the CHANGELOG entry?

Before:

```ruby
def foo(bar: baz(42))
                ^^^^ Omit parentheses for method calls with arguments.
end
```

After:

```ruby
def foo(bar: baz(42))
end
```
```
@gsamokovarov
Copy link
Contributor Author

@koic, thanks for the reminder. Added the changelog entry, the change should be good now.

@koic koic merged commit 508b051 into rubocop:master Feb 17, 2019
@koic
Copy link
Member

koic commented Feb 17, 2019

Thank you @gsamokovarov!

@gsamokovarov gsamokovarov deleted the omit-parentheses-kwargs branch February 17, 2019 16:48
@Drenmi Drenmi mentioned this pull request Feb 19, 2019
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.

None yet

2 participants