error-registry.yml

Per-rule severity overrides for validation, in a single file at the project root next to codocation.yml. The file holds only the rules you changed; everything else uses the defaults below. This catalog mirrors the plugin's registered DiagnosticCode values; only these codes are valid severity-override keys.

severities:
  MD_004: error
  NAV_002: suppressed

Values: error (blocks build and deploy), warning, weak-warning, suppressed (the rule stops reporting). The plugin's Severity.INFO is presented here as weak-warning.

Rules and default severities

CodeDefaultChecks
NAV_001errorA navigation entry points to a missing page
NAV_002warningA page is in no navigation, so it will not appear on the site
NAV_003warningThe same page appears several times in one section
NAV_004errorThe navigation file is malformed
NAV_005errorA nested section where only flat items are allowed (header/footer)
NAV_006errorAn item combines page, section, and href
NAV_007errorA bare path used as a key instead of page:
NAV_008errorMore than one page marked as home
NAV_009errorAn item kind not allowed in this section
NAV_010errorAn invalid navigation item field
NAV_011warningThe documentation has no description

Markdown

CodeDefaultChecks
MD_001errorThe page has no title
MD_002errorThe frontmatter is invalid
MD_003warningAn unknown frontmatter field (with a did-you-mean hint)
MD_004errorAn internal path or namespace is invalid, or a canonical page, image, attachment, or asset target is missing
MD_005warningA link points to a heading that does not exist
MD_006weak-warningThe title is set twice (frontmatter and an H1)
MD_007warningMore than one top-level heading
MD_008errorA link target is not included in the current site's tree
MD_009errorA link target exists, but its location is not published

Configuration

CodeDefaultChecks
CFG_001errorA configured branding or media file is missing, including the logo or favicon
CFG_002errorTwo sites share one base path
CFG_003errorA configuration file has an invalid setting

Localization

CodeDefaultChecks
I18N_001errorA page is missing from a requested locale
I18N_002errorA page is marked fallback in the default locale
I18N_003errorA page is marked fallback while a requested-locale file exists
I18N_004errorA locale-shaped directory is not configured

Landing sections

CodeDefaultChecks
LAND_001errorThe legacy sections: frontmatter key (moved into body directives)
LAND_002errorA ::: directive has no closing fence
LAND_003errorAn unknown section name
LAND_004errorA malformed attribute (not key="value")
LAND_005warningAn attribute the section does not recognize
LAND_006errorA required attribute is missing
LAND_007warningAn invalid button value (use "primary" or "secondary")
LAND_008errorA closing fence with no open directive
LAND_009warningA card outside a features/steps container
LAND_010warningAn invalid section background value (use tinted)
LAND_011errorA button annotation is detached from its link

Definitions

CodeDefaultChecks
GLOS_001errorA glossary term is not defined
GLOS_002warningA glossary term is defined more than once
KEYS_001errorA keyboard shortcut action is not defined
KEYS_002warningA keyboard shortcut action is defined more than once

Failures without a stable registry code

Some structural validation and reader failures currently have no registered diagnostic code. Unknown or incomplete definition payloads, invariant definition changes, and reader failures such as an absent or unparseable codocation.yml, invalid default-locale selection, a missing required site/locale tree, or a fallback page with no default-locale source are reported outside the code table until a stable code is implemented. Legacy paths are never read and do not receive a fabricated migration code. Use only the registered codes above when writing error-registry.yml overrides.