Skip to content

Rule: Internal struct gained a field, out of contract

Canonical rule slug: internal-struct-field-added-scoped. ← back to all rules

A struct reachable only from internal headers gains a field, which public-surface scoping correctly declines to report.

Canonical demonstration