-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Style/RedundantArgument
report for cases like foo.split(' ', 2)
#9083
Comments
The cop was supposed ignore method calls with more than 1 argument, but I guess the check and the test case is missing. //cc @tejasbubane |
Right I missed that check. |
…for more than one argument Also * Add check for explicit receiver must be present. * Refactor tests for the cop. Closes rubocop#9083
Hi. It seems like the fix did not make it into the 1.4.1 release, although it is listed in the CHANGELOG: I just hit this problem with 1.4.1:
|
@avdv Right. This bug came in just after |
It's just that I am using depend-a-bot which sources the changelog from the changelog.md file of a gem's repository and hitting the same bug it says is fixed on the tin is ... surprising. 😄 Waiting for the next release then. |
Yeah, it seems I didn't notice that the changelog entry was misplaced. That's why these days it's discouraged to edit the changelog directly and we're mostly generating it from the files under |
Seems
Style/RedundantArgument
didn't know about second argumentlimit
forsplit
methodSteps to reproduce the problem
test.rb
script with content:Seems in that case this cop should just ignore it, if limit is set
RuboCop version
The text was updated successfully, but these errors were encountered: