Skip to content

Enable Lint/DuplicateMethods rubocop rule #43374

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

Merged

Conversation

nvasilevski
Copy link
Contributor

Summary

Recently I made a mistake by defining two tests with the same name - #43299

I would like to prevent this from happening in the future and the most obvious solution that comes to mind is rubocop.

However please feel free to suggest any other solutions or raise a concern if doesn't make sense to prevent similar errors at all
Thanks!

Solution

I had to disable rubocop for several legitimate cases and removed one actual duplication

@nvasilevski nvasilevski force-pushed the enable-duplicate-methods-name-cop branch from b725cdc to 2a00c89 Compare November 15, 2021 18:51
@rafaelfranca rafaelfranca merged commit ee8948b into rails:main Nov 15, 2021
@nvasilevski nvasilevski deleted the enable-duplicate-methods-name-cop branch November 15, 2021 20:19
koic added a commit to koic/oracle-enhanced that referenced this pull request Nov 17, 2021
koic added a commit to koic/rubocop-rails_config that referenced this pull request Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants