1 unstable release
Uses new Rust 2024
| 0.1.0 | Dec 6, 2025 |
|---|
#435 in Text processing
37KB
685 lines
ttlint
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)
Features
- Checks for the presence of certain substrings
- Very fast
--fixmode available- Precompiled binaries available
- Safe, doesn't panic
- <200 lines of code
Non-Features
- No recursive mode, use
find/xargs/shell globs - Not parallel, use
xargs,make, orninja
Install
Download a binary from the releases page, or build with Cargo:
cargo install --locked ttlint
Dependencies
~1.5–2.3MB
~39K SLoC