class RuboCop::Cop::Style::RedundantSelfAssignment

Checks for places where redundant assignments are made for in place modification methods.

@safety

This cop is unsafe, because it can produce false positives for
user defined methods having one of the expected names, but not modifying
its receiver in place.

@example

# bad
args = args.concat(ary)
hash = hash.merge!(other)

# good
args.concat(foo)
args += foo
hash.merge!(other)

# good
foo.concat(ary)