Skip to content

Structure

Rule kinds in the Structure family. Each rule below links to its own page with options, an example, and any auto-fix support.

RuleDescription
file_max_sizeFile must be at most max_bytes in size.
file_min_sizeFile must be at least min_bytes in size.
file_min_linesFile must have at least min_lines lines (\n-terminated, with an unterminated trailing segment counting as one more, wc -l semantics).
file_max_linesFile must have at most max_lines lines, using the same accounting as file_min_lines.
max_directory_depthTree depth from repo root may not exceed max_depth.
max_files_per_directoryPer-directory fanout may not exceed max_files.
no_empty_filesFlag zero-byte files.
dir_containsEvery directory matching select: must contain files matching every glob in require:.
dir_only_containsEvery direct-child file of a directory matching select: must match at least one glob in allow:.