Function too large or too complex
Oversized or overly complex functions should be split into smaller units.
#Metadata
#Why it matters
Large functions are harder to test, review, and change safely because behavior and branching accumulate in one place.
#Remediation
Break the function into helpers, reduce branching, and isolate independent responsibilities.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.quality.function-too-large-or-complex.rule.yaml.