Skip to main content

What it flags

A Go regexp with a fixed pattern is compiled inside a loop.

Example

regexp.Compile("pattern") or regexp.MustCompile("pattern")

Configuration

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