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

Add ContextMethod cop #805

Merged
merged 1 commit into from Aug 18, 2019
Merged

Add ContextMethod cop #805

merged 1 commit into from Aug 18, 2019

Conversation

pirj
Copy link
Member

@pirj pirj commented Aug 11, 2019

As discussed in #417 is would be good to have a cop to check for the combination of context and a method name.

Based on #751, addressed code review notes.


Before submitting the PR make sure the following are checked:

  • 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.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

@pirj
Copy link
Member Author

pirj commented Aug 17, 2019

@bquorning @Darhazer @dgollahon Is there anything that needs to be addressed here?

Copy link
Collaborator

@bquorning bquorning left a comment

Choose a reason for hiding this comment

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

Looks good. Will you squash the commits, then I’ll merge them.

@pirj
Copy link
Member Author

pirj commented Aug 18, 2019

@bquorning Done.

@bquorning bquorning merged commit 96a19c5 into rubocop:master Aug 18, 2019
@pirj pirj deleted the 417_context_method branch August 18, 2019 19:48
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

3 participants