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
When using parallel assignment involving self Style/RedundantSelf thinks self is redundant.
Expanding the parallel assignment works, i.e. self is recognized as non-redundant:
…arallel assignment
This cop would incorrectly mark a `self` as redundant when used in the
lhs expression of a parallel assignment.
This change fixes that.
When using parallel assignment involving
self
Style/RedundantSelf thinksself
is redundant.Expanding the parallel assignment works, i.e.
self
is recognized as non-redundant:With parallel assignment:
Serial assignment:
Expected behavior
Rubocop should notice that
self
is not redundant.Actual behavior
Rubocop thinks that
self
is redundant.Steps to reproduce the problem
Check this code with Style/RedundantSelf enabled:
RuboCop version
The text was updated successfully, but these errors were encountered: