You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that I'm not sure if adding leading arguments is supported by all Ruby versions. I seem to remember when this syntax was introduced it was very limited. If that's the case, I would expect this cop to not even find an offense if the target Ruby version doesn't support leading arguments.
The text was updated successfully, but these errors were encountered:
Note that I'm not sure if adding leading arguments is supported by all Ruby versions. I seem to remember when this syntax was introduced it was very limited. If that's the case, I would expect this cop to not even find an offense if the target Ruby version doesn't support leading arguments.
Style/ArgumentsForwarding will replace all arguments to the called method with
...
, even if there are arguments besides the*args, **kwargs, &
.Given the following code:
Expected behavior
Actual behavior
Note the additional Net::HTTP::Get inline argument has been removed.
Steps to reproduce the problem
Auto-correct the above code with the Style/ArgumentsForwarding cop.
RuboCop version
Note that I'm not sure if adding leading arguments is supported by all Ruby versions. I seem to remember when this syntax was introduced it was very limited. If that's the case, I would expect this cop to not even find an offense if the target Ruby version doesn't support leading arguments.
The text was updated successfully, but these errors were encountered: