Excessive Settings Count
Identifies section or block schemas with more top-level settings than the configured maxSettings. This check counts only top-level settings with an id; it doesn't count presentation-only header or paragraph entries, or settings nested inside blocks.
Reducing the number of top-level settings helps keep sections and blocks easier to configure. When a schema exceeds the configured maximum, reduce the number of top-level settings with an id—for example, remove unused settings or move related settings into nested blocks. Adding a header or paragraph entry doesn't lower the count because those entries have no id.
Anchor to ExamplesExamples
The following examples contain code snippets that either fail or pass this check.
Anchor to ✗ Fail✗ Fail
In the following example, the schema declares 41 top-level settings with an id, which is greater than the default maximum of 40:
Anchor to ✓ Pass✓ Pass
In the following example, the header and paragraph entries don't count because they don't have an id:
Anchor to OptionsOptions
The following example contains the default configuration for this check:
| Parameter | Description |
|---|---|
enabled | Whether this check is enabled. |
severity | The severity of the check. |
maxSettings | The maximum number of top-level schema settings with an id. |
Anchor to Disabling this checkDisabling this check
Disabling this check isn't recommended. If you can't avoid violating the rule, then you should disable the check using the comment syntax. This ensures that you intentionally disable the check for each instance.