Inspectopedia
 
2024.3

Assignment can be replaced with operator assignment

Info
Last modified: 03 December 2024

Reports modifications of variables with a simple assignment (such as y = y + x) that can be replaced with an operator assignment.

The quick-fix replaces the assignment with an assignment operator.

Example:

After the quick-fix is applied: