Skip to main content

What it flags

A Python loop repeatedly looks up a fixed pattern in the re.compile cache.

Example

re.compile("pattern") with a string literal, in a module that imports re.

Configuration

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