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

Make Rails/RedundantReceiverInWithOptions and Rails/ReversibleMigration aware of numblock #754

Commits on Aug 16, 2022

  1. Make Rails/RedundantReceiverInWithOptions and `Rails/ReversibleMigr…

    …ation` aware of numblock
    
    This PR Make `Rails/RedundantReceiverInWithOptions` and `Rails/ReversibleMigration` cops aware of
    numbered block parameter.
    
    `Rails/ActionFilter` and `Rails/RakeEnvironment` cops have block arguments, so numblock operation is unnecessary.
    
    `Rails/IndexBy` and `Rails/IndexWith` cops is a slightly more complicated operation using multiple block arguments.
    It'll take care of it another time using `rubocop:todo` comment because I think it's a really rare case.
    koic committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    62ebebe View commit details
    Browse the repository at this point in the history