Skip to content

max_directory_depth

Tree depth from repo root may not exceed max_depth. A shallow depth stops deeply-nested imports and keeps CI path globs sane.

- id: shallow-tree
kind: max_directory_depth
paths: "**"
max_depth: 6
level: warning
OptionTypeRequiredDefaultDescription
max_depthinteger (>= 1)yesMaximum allowed path depth (number of /-separated components).

Plus the common paths, level, id, and when fields. This table is generated from the JSON Schema; option types and defaults are authoritative.