Skip to main content

What it flags

Repeated linear lookups or rebuilt indexes.

How to review or fix

Reuse a Set or Map if inputs are stable and enough lookups justify construction. Preserve first-match semantics with duplicate keys.

Example from the editor

Build the set once while allowedIds is stable.

Configuration

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