diff options
Diffstat (limited to 'tools/spell-check/README.md')
-rw-r--r-- | tools/spell-check/README.md | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/spell-check/README.md b/tools/spell-check/README.md new file mode 100644 index 00000000..2b2800a6 --- /dev/null +++ b/tools/spell-check/README.md @@ -0,0 +1,34 @@ +# What's this? + +This script is a spell checker for GoBGP's source codes. + +## Requirements + +- [scspell3k](https://pypi.python.org/pypi/scspell3k): Spell checker for +source code written in Python. + + ```bash + pip install scspell3k + ``` + +## How to use + +Just run `scspell.sh ` + +```bash +bash tools/spell-check/scspell.sh +``` + +Example of output: + +```bash +# Format: +# path/to/file.go: <messages> +xxx/xxx.go: 'mispeld' not found in dictionary (from token 'Mispeld') +``` + +## Adding new words to dictionary + +If you want to add new words to the dictionary for this spell checker, please +insert words into `tools/spell-check/dictionary.txt` or +`tools/spell-check/ignore.txt`. |