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 new Minitest/LiteralAsActualArgument cop #92

Merged
merged 1 commit into from
Jul 5, 2020

Conversation

fatkodima
Copy link
Contributor

https://minitest.rubystyle.guide/#assert-equal-arguments-order

While, unfortunately, we can not for sure tell in every occasion if expected and actual are incorrectly swapped. But we can for sure tell so when actual is a [recursive]literal.

@fatkodima fatkodima force-pushed the assert-equal-arguments-order-cop branch from 8c58f51 to 78c35b3 Compare July 3, 2020 10:00
@fatkodima
Copy link
Contributor Author

Updated.

@fatkodima fatkodima changed the title Add new Minitest/AssertEqualArgumentsOrder cop Add new Minitest/LiteralAsActualArgument cop Jul 3, 2020
@koic koic merged commit cc1aaec into rubocop:master Jul 5, 2020
@koic
Copy link
Member

koic commented Jul 5, 2020

Thanks!

@fatkodima fatkodima deleted the assert-equal-arguments-order-cop branch January 16, 2023 13:06
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