class RuboCop::Cop::Style::SelfAssignment

Enforces the use the shorthand for self-assignment.

@example

# bad
x = x + 1

# good
x += 1