Skip to main content

What it flags

A for loop starts at 0, runs i <= items.length and reads items[i], so the last pass reads past the end. Loops starting at 1 are accepted. The fix changes <= to < and is marked for review.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: