Skip to content

max_files_per_directory

Per-directory fanout may not exceed max_files. Useful for vendor directories that accidentally grow to thousands of entries.

- id: vendor-dir-fanout-cap
kind: max_files_per_directory
paths: "vendor/**"
max_files: 200
level: warning
OptionTypeRequiredDefaultDescription
max_filesinteger (>= 1)yesMaximum number of in-scope files allowed as immediate children of any one directory (non-recursive).

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