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.
no_merge_conflict_markersFlag <<<<<<< , =======, >>>>>>> , ||||||| markers at the start of a line, almost always left over from an unresolved merge.
no_bomFlag a leading UTF-8 / UTF-16 LE/BE / UTF-32 LE/BE byte-order mark.
ordered_blockThe lines between a start / end marker pair must stay sorted (and, with unique: true, free of duplicates) under comparator (lexical / lexical-ci / numeric).