Warning
This post was published 42 days ago. The information described in this article may have changed.
A rust alternative to cspell (a.k.a Code Spell Checker). I was using cspell on a large project and noticed it was rather slow, also it has dictionaries as npm packages, which is very language specific, and requires node to be installed on the machine. Anyhow I thought it might be a good idea to try and improve on parts of it, and hopefully gain some performance.
The general idea is that treesitter parses the file (or the file is split by whitespace as a fallback) and then identifiers are checked for typos (underscores, special characters, and capitalization and most other cases are handled, mostly like how cspell does it). There is a configuration file that is much like cspell's which lets you choose which dictionaries are used. Currently the dictionaries are sourced from cspell, but the cspell-trie format can't be read, so certain large dictionaries are not supported.
It usually runs about 10x faster than cspell, however there is no LSP implementation.
1 post - 1 participant
🏷️ rust_feed