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

Include a cop to enforce assert_respond_to #27

Merged

Conversation

duduribeiro
Copy link
Contributor

This commit adds a cop that checks the usage of
assert(object.respond_to?(:some_method)) and enforces the usage of
assert_respond_to(object, :some_method) instead.

@duduribeiro duduribeiro force-pushed the add_cop_to_enforce_assert_respond_to branch from 4f18082 to be2675f Compare October 12, 2019 05:06
config/default.yml Outdated Show resolved Hide resolved
This commit adds a cop that checks the usage of
`assert(object.respond_to?(:some_method))` and enforces the usage of
`assert_respond_to(object, :some_method)` instead.
@duduribeiro duduribeiro force-pushed the add_cop_to_enforce_assert_respond_to branch from be2675f to 6bd6377 Compare October 12, 2019 13:17
@duduribeiro
Copy link
Contributor Author

@koic I updated the default.yml file. Can you re-review it?

Thanks 🍻

@koic koic merged commit b054f33 into rubocop:master Oct 13, 2019
@koic
Copy link
Member

koic commented Oct 13, 2019

Thanks!

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