Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

Module file_max_lines

Module file_max_lines 

Source
Expand description

file_max_lines — files in scope must have AT MOST max_lines lines. Mirror of crate::file_min_lines; shares the line-counting semantics so the two compose cleanly when both are applied to the same file.

Catches the “everything-module” anti-pattern — a single lib.rs / index.ts / helpers.py that grew until it does the work of a half-dozen smaller files. The threshold is intentionally a soft signal rather than a hard limit; we ship it at level: warning in tutorials and rulesets, and leave the cap value to the team.

Structs§

FileMaxLinesRule

Functions§

build