Skip to main content

Module line_max_width

Module line_max_width 

Source
Expand description

line_max_width — cap on characters per line.

Counts Unicode scalar values (chars) per line, not bytes or display cells. CJK, combining marks, and emoji that occupy two terminal columns count as one char — if you want real display-width accounting, use a formatter (Biome, prettier); that’s out of alint’s byte/structure scope.

Check-only: truncation isn’t a safe auto-fix. Users either refactor the line or widen the limit.

Structs§

LineMaxWidthRule

Functions§

build