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

Adds cop to enforce refute_instance_of over refute(object.instance_of?(Class)) #35

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

abhaynikam
Copy link
Contributor

PR adds cops to enforce the use of refute_instance_of over refute(object.instance_of?(Class))

Ref: https://github.com/rubocop-hq/minitest-style-guide#refute-instance-of

@abhaynikam abhaynikam force-pushed the adds-cop-for-refute-instance-of branch from 6e75828 to 02278bc Compare October 30, 2019 16:22
@koic
Copy link
Member

koic commented Nov 1, 2019

Can you rebase with latest master?

@abhaynikam abhaynikam force-pushed the adds-cop-for-refute-instance-of branch from 02278bc to a51afb7 Compare November 1, 2019 06:08
@abhaynikam abhaynikam force-pushed the adds-cop-for-refute-instance-of branch from a51afb7 to f96af5f Compare November 1, 2019 06:16
@abhaynikam
Copy link
Contributor Author

@koic : Rebased PR with latest master. Thanks

@koic koic merged commit 5f52267 into rubocop:master Nov 5, 2019
@koic
Copy link
Member

koic commented Nov 5, 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