dir_contains
Every directory matching select: must contain files matching every glob in require:. Sugar for a common for_each_dir shape.
- id: packages-have-readme-and-license kind: dir_contains select: "packages/*" require: ["README.md", "LICENSE*"] level: errorOptions
Section titled “Options”| Option | Type | Required | Default | Description |
|---|---|---|---|---|
require | string or list of string | yes | Basename glob(s) — every dir matching select must have at least one child matching each. | |
select | string | yes |
Plus the common level, id, and when fields. This rule analyses the whole repository, so it takes no paths. This table is generated from the JSON Schema; option types and defaults are authoritative.