Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow rubocop/rubocop#7646. This PR adds new "Arguments Forwarding" rule that prefers Ruby 2.7's arguments forwarding syntax. ```ruby # bad def some_method(*args, &block) other_method(*args, &block) end # bad def some_method(*args, **kwargs, &block) other_method(*args, **kwargs, &block) end # bad # Please note that it can cause unexpected incompatible behavior # because `...` forwards block also. # rubocop/rubocop#7549 def some_method(*args) other_method(*args) end # good def some_method(...) other_method(...) end ```
- Loading branch information