An Elixir-wrapped spell checker for code.
This library takes Bun as a runtime, downloads cspell and uses it to check the spelling in your Elixir code. Intended for CI usage.
Install using igniter to also get offered a default .cspell.json config:
mix archive.install hex igniter_new
mix igniter.install spellweaverOr manually by adding spellweaver to your list of dependencies in mix.exs:
def deps do
[
{:spellweaver, "~> 0.1.0"}
]
endRun the spell checker:
mix spellweaver.checkFor CI environments, you can pin a specific cspell version using the --cspell-version flag:
mix spellweaver.check --cspell-version 9.4.0This ensures consistent spell checking across builds and prevents breaking changes from new cspell releases.
Example CI configuration (GitHub Actions):
- name: Run spell checker
run: mix spellweaver.check --cspell-version 9.4.0