Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

performance.allocation

Avoid no regex construction in loop

Performance hygiene signal for go sources.

#Metadata

Rule ID
go.performance.no-regex-construction-in-loop
Severity
medium
Confidence
0.66
Languages
go
Presets
strict
Stability
experimental
Applies to
block
Tags
go, performance, rules-catalog

#Why it matters

Performance hygiene signal for go sources.

#Remediation

Refactor this path to reduce avoidable runtime overhead.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/go/go.performance.no-regex-construction-in-loop.rule.yaml.