Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

correctness.language

Duplicate function parameter names

A function declares the same parameter name more than once.

#Metadata

Rule ID
ts.correctness.duplicate-function-parameter
Severity
medium
Confidence
0.95
Languages
javascript, typescript
Presets
recommended, strict
Stability
stable
Applies to
file
Tags
correctness, crq-cor-017, language, public-directory-parity, rules-catalog

#Why it matters

Duplicate parameters are confusing and usually indicate a copy-paste or merge mistake.

#Remediation

Rename or remove the duplicate parameter so each binding is unique.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.correctness.duplicate-function-parameter.rule.yaml.