correctness.data-access

Unchecked map or dictionary key access

Lookups should verify key presence before reading from maps or keyed objects.

#Metadata

#Why it matters

Missing-key reads often flow undefined deeper into the function and fail far away from the original lookup.

#Remediation

Check `has`, `in`, or `Object.hasOwn` before reading, or provide a safe default when the key is missing.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.correctness.unchecked-map-key-access.rule.yaml.