We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since methods like Array#concat returns self:
Array#concat
self
# bad args = args.concat(ary) self.foo = foo.concat(ary) # good args.concat(foo) # or args += foo foo.concat(ary) # or self.foo += ary
Noticed in our code
The text was updated successfully, but these errors were encountered:
Note: I didn't check if we already have a similar cop
Sorry, something went wrong.
Style/RedundantSelfAssignment
Successfully merging a pull request may close this issue.
Since methods like
Array#concat
returnsself
:Noticed in our code
The text was updated successfully, but these errors were encountered: