Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

quality

No Empty Function

Avoid empty function bodies

#Metadata

Rule ID
ts.quality.no-empty-function
Severity
low
Confidence
0.85
Languages
javascript, typescript
Presets
recommended, strict
Stability
stable
Applies to
file
Tags
quality, rules-catalog

#Why it matters

Avoid empty function bodies:empty implementations hide missing logic; use a comment, throw, or remove the stub.

#Remediation

Avoid empty function bodies:empty implementations hide missing logic; use a comment, throw, or remove the stub.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.quality.no-empty-function.rule.yaml.