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 #8514] Correct multiple Style/MethodDefParentheses per file. #8817

Conversation

rdunlop
Copy link
Contributor

@rdunlop rdunlop commented Sep 30, 2020

Fix the ability to correctly identify and auto-correct multiple
MethodDefParentheses violations in a single file.


Before submitting the PR make sure the following are checked:

  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation. (N/A?)

CHANGELOG.md Outdated
@@ -10,6 +10,7 @@

* [#8810](https://github.com/rubocop-hq/rubocop/pull/8810): Fix multiple offense detection for Style/RaiseArgs. ([@pbernays][])
* [#8809](https://github.com/rubocop-hq/rubocop/pull/8809): Fix multiple offense detection for Style/For. ([@pbernays][])
* [#8514](https://github.com/rubocop-hq/rubocop/pull/8514): Correct multiple `Style/MethodDefParentheses` per file. ([@rdunlop][])
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* [#8514](https://github.com/rubocop-hq/rubocop/pull/8514): Correct multiple `Style/MethodDefParentheses` per file. ([@rdunlop][])
* [#8514](https://github.com/rubocop-hq/rubocop/issues/8514): Correct multiple `Style/MethodDefParentheses` per file. ([@rdunlop][])

CHANGELOG.md Outdated
@@ -4938,3 +4939,4 @@
[@em-gazelle]: https://github.com/em-gazelle
[@tleish]: https://github.com/tleish
[@pbernays]: https://github.com/pbernays
[@rdunlop]: https://github.com/rdunlop
Copy link
Member

Choose a reason for hiding this comment

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

Can you rebase with the latest master branch and remove it?

Fix the ability to correctly identify and auto-correct multiple
MethodDefParentheses violations in a single file.
@rdunlop rdunlop requested a review from koic October 1, 2020 14:50
@rdunlop rdunlop force-pushed the correct_all_occurrences_of_method_def_parentheses branch from c3f2712 to 0570df8 Compare October 1, 2020 14:50
@koic koic merged commit 433babd into rubocop:master Oct 1, 2020
@koic
Copy link
Member

koic commented Oct 1, 2020

Thanks!

@dudad0066 dudad0066 mentioned this pull request Oct 22, 2020
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