Skip to content

Text hygiene

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

RuleDescription
no_trailing_whitespaceNo line may end with space or tab.
final_newlineFile must end with a single \n.
line_endingsEvery line ending matches target: lf or crlf.
line_max_widthCap line length in characters (not bytes, code points).
indent_styleEvery non-blank line indents with the configured style (tabs or spaces).
max_consecutive_blank_linesCap runs of blank lines to max.