Inspectopedia
 
2024.3

Mismatched read and write of array

Warning
New
Last modified: 03 December 2024

Reports arrays whose contents are read but not updated, or updated but not read. Such inconsistent reads and writes are pointless and probably indicate dead, incomplete or erroneous code.

Example: