Check type ID#
kind: filesystem_name_regex
Purpose#
Require a name to match a regular expression (anchored).
Configuration keys#
| Field | Required | Default | Meaning |
|---|---|---|---|
pattern | yes | - | Regular expression; matched anchored (^pattern$). |
target | no | filename | What to test: filename, filename-ext, parent-dir, or path-segments. |
Example#
collections:
notes:
path: notes
checks:
- kind: filesystem_name_regex
pattern: '[0-9]{4}-[a-z-]+'