Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

correctness.language

Empty block statement

A control-flow or try/catch branch uses an empty `{}` block.

#Metadata

Rule ID
ts.correctness.empty-block-statement
Severity
low
Confidence
0.85
Languages
javascript, typescript
Presets
recommended, strict
Stability
stable
Applies to
file
Tags
correctness, crq-cor-025, language, rules-catalog

#Why it matters

Empty blocks hide missing logic, swallowed errors, or incomplete refactors and often mask bugs.

#Remediation

Add the intended statements, throw or log in error paths, or remove the branch if it is dead code.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.correctness.empty-block-statement.rule.yaml.