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
…nCondition`
Fixesrubocop#12434.
This PR fixes a false positive for `Lint/LiteralAssignmentInCondition`
when using interpolated string or xstring literals.
Expected behavior
Lint/LiteralAssignmentInCondition should not register for non-literals
Actual behavior
A string with interpolation in the condition of a loop where the interpolation values change inside is triggering the cop.
Steps to reproduce the problem
rubocop --only Lint/LiteralAssignmentInCondition test.rb
RuboCop version
The text was updated successfully, but these errors were encountered: