Skip to content

line_endings

Every line ending matches target: lf or crlf. Mixed endings in a single file fail.

- id: lf-only
kind: line_endings
paths: ["**/*.rs", "**/*.md"]
target: lf
level: warning
fix:
file_normalize_line_endings: {}
OptionTypeRequiredDefaultDescription
targetone of lf | crlfyesRequired line ending style: lf or crlf. Mixed endings within a file also fail.

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