Check type ID#

kind: text_requires

Purpose#

Require a regular expression to appear in the body text.

Configuration keys#

FieldRequiredDefaultMeaning
patternyes-Go regular expression, matched unanchored (appears somewhere in the span).
targetnobodySpan selector: body, line, first-line, or matched-lines.
selectno-Line-filter regex; required for and only valid with target matched-lines.
matchnoanyFor multi-span targets: any (at least one span matches) or all (every span matches).

Example#

collections:
  notes:
    path: notes
    checks:
      - kind: text_requires
        pattern: Sources