Verification · Hygiene
Spelling
Finds misspellings in identifiers, comments and documentation, where a typo becomes a public API or a search miss.
Sub-techniques
-
Identifier typo detection
V1003.001Split camelCase and snake_case identifiers and flag known misspellings.
-
Prose spell check
V1003.002Dictionary check over docs and comments with a project word list.
How to build it
- Start with a low false-positive tool (typos or codespell) on the whole tree.
- Add an allow-list file for domain words instead of disabling the check.
- Run it in pre-commit and in CI with autofix locally.
Signals in a repository
- _typos.toml, .codespellrc or cspell.json in the repository.
- A codespell or typos hook in .pre-commit-config.yaml.