cspell-cli
v10.3.0
Published
CLI for cspell; A Spelling Checker for Code!
Downloads
54,241
Readme
cspell-cli
Usage
To check all files under the current directory, run:
npx cspell-cli --gitignore .Setup pre-commit Hook
This repository enables using cspell as a pre-commit hook.
# .pre-commit-config.yaml
repos:
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v10.3.0
hooks:
- id: cspell # Spell check changed files
- id: cspell # Spell check the commit message
name: check commit message spelling
args:
- --no-must-find-files
- --no-progress
- --no-summary
- --files
- .git/COMMIT_EDITMSG
stages: [commit-msg]
always_run: true # This might not be necessary.How-To Guides and Configuration Examples
- Use Dictionaries from
cspell-dicts - Use a Custom Dictionary
- Use an Extra Dictionary Based on the Folder or Filename
- Example
pre-commitSetup for French
Install from GitHub
This repo also allows installing the cspell-cli directly from GitHub:
npm install -g git+https://github.com/streetsidesoftware/cspell-cliDocker
docker run -v $PWD:/workdir ghcr.io/streetsidesoftware/cspell:latest .See Extending the Docker Container to include German
Usage
cspell --help:
