ttlint is a Tiny Text Linter. It uses the very fast Aho-Corasick algorithm
to search for a set of strings.
By default, it searches for:
- Trailing whitespace
- The UTF-8 byte-order mark
- Git merge conflict markers
- Carriage return (
\r)
-
Checks for the presence of certain substrings
-
Very fast
-
--fixmode available -
Precompiled binaries available
-
Safe, doesn't panic
-
<300 lines of code
-
GitHub actions:
- No recursive mode, use
find/xargs/shell globs - Not parallel, use
xargs,make, orninja
Download a binary from the releases page, or build with Cargo:
cargo install --locked ttlint