Thanks to visit codestin.com
Credit goes to lib.rs

1 unstable release

Uses new Rust 2024

0.1.0 Dec 6, 2025

#435 in Text processing

MIT license

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:

Features

  • Checks for the presence of certain substrings
  • Very fast
  • --fix mode 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, or ninja

Install

Download a binary from the releases page, or build with Cargo:

cargo install --locked ttlint

Dependencies

~1.5–2.3MB
~39K SLoC