Duplicate code block
Large duplicated function bodies across files make behavior harder to maintain safely.
#Metadata
#Why it matters
Duplicated logic often diverges over time and increases the cost of fixes, testing, and future changes.
#Remediation
Extract the shared logic into a common helper or module and keep one maintained implementation.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.quality.duplicate-code-block.rule.yaml.