#newline #check #linter #path #ends #text

app lf_lint

Linter that checks that all files in <PATH> ends with a newline

1 unstable release

0.1.0 Mar 26, 2023

#1053 in Text processing

MIT license

7KB
107 lines

lf_lint

Linter that checks that all files in ends with a newline. Optionally adds such a newline where missing.

$ lf_lint --help
Checks that all text files in <PATH> ends with a newline

Usage: lf_lint [OPTIONS] --path <PATH>

Options:
  -p, --path <PATH>  Path to operate on
  -f, --fix          Add new line at EOF if missing
  -h, --help         Print help
  -V, --version      Print version

This tool is available as a Crate and as a Docker image.

Dependencies

~3–11MB
~107K SLoC