typos is a Rust-based source code spell checker designed to detect and correct spelling mistakes across software repositories. Its optimized scanning engine processes large codebases efficiently while minimizing false-positive results. Unlike conventional dictionary-based spell checkers, it relies on recognized misspellings and their corresponding corrections. It examines source code identifiers, documentation, filenames, and other textual content. Automatic correction functionality applies unambiguous replacements while reporting mistakes with multiple possible interpretations. Project-specific TOML configurations support custom dictionaries, ignored identifiers, and file exclusion patterns. Structured JSON reports and difference previews facilitate automated validation. typos integrates with GitHub Actions, pre-commit hooks, GitLab, and compatible code editors.
Features
- High-performance source code spell checking optimized for extensive repositories and large monorepos
- Automatic detection and correction of recognized misspellings with minimal false-positive results
- Source code identifier analysis with separate recognition of individual words within compound identifiers
- Customizable TOML configurations supporting dictionary extensions, regular expressions, and file exclusion patterns
- Flexible diagnostic reporting through structured JSON output, difference previews, and detailed debugging logs
- Integration with GitHub Actions, pre-commit hooks, GitLab Code Quality, and Visual Studio Code