Skip to content

file_max_lines

File must have at most max_lines lines, using the same accounting as file_min_lines. Catches the everything-module anti-pattern — a lib.rs / index.ts / helpers.py that grew unbounded.

- id: cap-source-file-size
kind: max_lines
paths: "src/**/*.rs"
max_lines: 800
level: warning
OptionTypeRequiredDefaultDescription
max_linesinteger (>= 0)yesMaximum allowed line count.

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