Pattern: Useless setter call
Issue: -
This rule checks for setter call to local variable as the final expression of a function definition.
# bad
def something
x = Something.new
x.attr = 5
end
# good
def something
x = Something.new
x.attr = 5
x
end