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

[Fix #2212] Handle methods without parentheses in auto-correct #2216

Merged
merged 1 commit into from
Sep 6, 2015

Conversation

karreiro
Copy link
Contributor

@karreiro karreiro commented Sep 5, 2015

Add to StringReplacement a condition for checking if the method has an opening parentheses, before adding the ')' in the end of the new call.

@karreiro karreiro force-pushed the autocorrect_parentheses_bug branch 2 times, most recently from f300802 to 10f407c Compare September 5, 2015 19:29
@@ -36,6 +36,7 @@

### Bug Fixes

* [#2212](https://github.com/bbatsov/rubocop/issues/2212): Handle methods without parentheses in auto-correct. ([@karreiro][])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in the master section of the changelog.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. :)

@karreiro karreiro force-pushed the autocorrect_parentheses_bug branch from 10f407c to 0b9b6d0 Compare September 6, 2015 09:11
@@ -1,6 +1,7 @@
# Change log

## master (unreleased)
* [#2212](https://github.com/bbatsov/rubocop/issues/2212): Handle methods without parentheses in auto-correct. ([@karreiro][])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in the "Bug Fixes" section a couple of lines down.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Done. :)

@karreiro karreiro force-pushed the autocorrect_parentheses_bug branch from 0b9b6d0 to 7bdcd16 Compare September 6, 2015 09:17
bbatsov added a commit that referenced this pull request Sep 6, 2015
[Fix #2212] Handle methods without parentheses in auto-correct
@bbatsov bbatsov merged commit cb00a0c into rubocop:master Sep 6, 2015
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.

2 participants