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
it"does not register an offense when using persisted? after create and nested assignments"doexpect_no_offenses(<<~RUBY) temp = (user = User.create) if temp.persisted? foo end RUBYendit"does not register an offense when assigning inside an if statement"doexpect_no_offenses(<<~RUBY) if (user = User.create).persisted? foo end RUBYend
ydakuka
changed the title
False positives for Rails/SaveBank for nested assignments
False positives for Rails/SaveBang for nested assignments
Jan 22, 2025
Describe the solution you'd like
Rubocop
The text was updated successfully, but these errors were encountered: