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

Codocation runs 116 inspections over a project. codocation rules prints this same list from the build you have installed, which is the copy to trust if the two ever disagree.

CodeDefaultChecks
NAV_001errorNavigation points to a missing page
NAV_002warningA page is in no navigation tree, so it is never built
NAV_003warningA page appears more than once in one navigation section
NAV_004errorThe navigation file is malformed
NAV_005errorThese navigation items must be flat - a nested section isn't allowed here
NAV_006errorA navigation item can't combine page, section, and href
NAV_007errorA navigation item uses a path as its key instead of 'page:'
NAV_008errorOnly one page can be the home page
NAV_009errorThis item isn't allowed in that navigation section
NAV_010errorInvalid navigation item field
NAV_011warningThis documentation has no description
NAV_012errorNo published page can serve the site root '/'
NAV_013errorThe route is reserved for archives
NAV_014warningA brand is linked more than once in one navigation section
NAV_015warningThe item has no counterpart in the default language
NAV_016errorTwo sections share an id
NAV_017error'section' takes no value; 'id', 'title' and 'children' are its siblings
NAV_018warning'inherited' can't be used in the default language, where every item is already this language's own
NAV_019errorThe default-language navigation file is missing a required key
NAV_020warningThis locale writes matched entries in an order that contradicts the default language, so the default language's order is used
NAV_022warningThe announcement has no 'until' date, so it will stay up until it is removed by hand
NAV_023warningThe announcement's 'until' date isn't a valid date - in the default language it is treated as unset, but in a locale overlay the default language's own date is used instead
NAV_024warningThe local 'collapsed' value matches the site's navigation default
NAV_025warningA membership-detach key can't be used in the default language, where there is no list to detach from
NAV_026warningA membership-detach key with no list beside it detaches nothing, so the list stays inherited
NAV_027errorA blog table of contents entry must point under 'pages/posts/'
NAV_028warningA link's href is a path, not a URL
NAV_029warningA section id repeats across this language and the default language

Markdown pages

CodeDefaultChecks
MD_001errorThis page has no title
MD_002errorThis page's frontmatter is invalid
MD_003warningUnknown frontmatter field
MD_004errorThis link points to a page that doesn't exist
MD_005warningThis link points to a heading that doesn't exist
MD_006warningThis page's title comes from frontmatter, so the H1 heading is a second title
MD_007warningThis page has more than one top-level heading (H1)
MD_008errorThe link target isn't in this site's navigation, so the link would be broken
MD_009errorInvalid heading metadata
MD_010errorA referenced definition isn't defined for this locale
MD_011errorAn anchor is used by more than one target
MD_012warningFrontmatter and the first H1 disagree
MD_013warningThe label attribute is repeated on one target
MD_014warningA category is repeated in one target
MD_015warningOne tag is written more than one way in one locale
MD_016errorA tag cannot be turned into a URL segment
MD_017errorA footnote reference has no definition
MD_018warningA footnote is defined but never referenced
MD_019warningA footnote is defined more than once

Project configuration

CodeDefaultChecks
CFG_001errorA configured image is missing, so the site would ship a broken image
CFG_002errorOne base path is used by more than one site
CFG_003errorThis file has an invalid setting
CFG_005warningA site lists the same locale twice
CFG_010warningA locale code conflicts with another using the same case-insensitive identity
CFG_011warningOne locale title is used by several locale codes
CFG_012warningUnknown site-strings key
CFG_013warningA locale has no site-strings.yml, so its built-in text isn't translated
CFG_014warningA locale's site-strings.yml is missing keys, so those labels aren't translated
CFG_015warningA contributeUrl is not an absolute http(s) URL
CFG_016warningA locale's site-strings.yml is complete but unmodified from English, so its built-in text isn't translated
CFG_024warningA locale has no built-in text translation, so its site chrome renders English
CFG_025warningUnknown diagnostic code in error registry
CFG_026warningInvalid severity value in error registry
CFG_027warningError registry file is not valid YAML
CFG_028warningEnabled feed has no absolute public URL
CFG_029errorA page output needs a feed path as a directory
CFG_030errorOne category archive segment is used by more than one category
CFG_031warningA variable payload names a site the project does not declare
CFG_032warningThe translation authors only a base value while the payload it shadows carries per-site values
CFG_033errorA base path contains an unsafe segment
CFG_034errorA public URL is not an absolute http(s) URL with a host

Semantic syntax

CodeDefaultChecks
SEM_001errorA semantic fence must use exactly ':::'
SEM_002errorA semantic container has no closing ':::'
SEM_003errorUnknown semantic container
SEM_004errorInvalid semantic attribute - use key="value", #anchor, or .class
SEM_005warningThis attribute isn't supported on this semantic carrier
SEM_006errorA semantic container is missing a required attribute
SEM_007errorThis closing fence doesn't match any open container
SEM_008errorA semantic container has invalid content
SEM_009warningAn attribute has an invalid value
SEM_010errorThis semantic modifier is detached or unsupported
SEM_011warningAn unknown admonition type renders with neutral styling
SEM_012errorA snippet ID is defined more than once
SEM_013errorAn included snippet does not exist
SEM_014errorSnippet includes form a cycle
SEM_015errorMalformed, mismatched, or unclosed template directive
SEM_016errorA filter condition requires a snippet or include scope
SEM_017errorThis identifier, filter tag, or site token is invalid
SEM_018errorThis attribute key or anchor is repeated
SEM_019errorA referenced code file does not exist under library/code
SEM_020errorInvalid line-range value - use N or N-M ranges separated by commas
SEM_021errorThe requested lines are beyond the end of the file
SEM_022errorA code block with 'src' must have an empty body
SEM_023warning'preview' applies only to local video files
SEM_024warning'caption' requires the media to stand alone in its paragraph
SEM_025errorA frame requires a 'title' attribute
SEM_026errorA frame URL must use http or https
SEM_027errorA frame must stand alone on its line
SEM_028warningA remote video must stand alone in its paragraph
SEM_029errorA tab key must be a lowercase slug of letters, digits, and hyphens
SEM_030errorDuplicate tab key in one tabs container
SEM_031errorA posts listing must stand alone on its line
SEM_032errorA page may hold only one posts listing
SEM_033errorA posts listing belongs to a blog site, not a docs site
SEM_034warningA tldr must be the first content in its section
SEM_035warningA section may hold only one tldr
SEM_036warningA '' element needs text and a closing '' on the same line
SEM_037warningEmphasized lines are past the end of the code block
SEM_038warningA class uses a reserved prefix and is not applied
SEM_039warningA switcher mark is nested inside another switcher section
SEM_040warningA 'switcher' value cannot be blank

Glossary and shortcuts

CodeDefaultChecks
GLOS_001errorA referenced glossary term isn't defined
GLOS_002warningA glossary entry id is used more than once
KEYS_001errorA referenced keyboard shortcut action isn't defined
KEYS_002warningA shortcut action is defined more than once

Locales and translation

CodeDefaultChecks
LOC_004errorA locale directory is not configured
LOC_005errorA required navigation tree is missing for a site locale
LOC_006errorA tree or sidecar exists for an undeclared site locale

Failures without a stable registry code

Some structural validation and reader failures have no registered diagnostic code. Unknown or incomplete definition payloads, invariant definition changes, and reader failures such as an absent or unparseable codocation.yml, an invalid site-default selection, or a missing default-language tree are reported outside the code table until a stable code is implemented. Use only the registered codes above when writing error-registry.yml overrides.