1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #42136 from jbampton/add-docs-on-misspell

Add documentation on spell checking with `misspell` [ci skip]
This commit is contained in:
Zachary Scott 2021-05-04 07:08:50 +09:00 committed by GitHub
commit 3682f1150d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -275,6 +275,19 @@ Inspecting 1 file
For `rails-ujs` CoffeeScript and JavaScript files, you can run `npm run lint` in `actionview` folder.
We are also running [misspell](https://github.com/client9/misspell) which is mainly written in Golang to check
spelling with [GitHub Actions](../../.github/workflows/lint.yml). Correct commonly misspelled English words quickly
with `misspell`. You can run `misspell` locally against all files with:
```bash
find . -type f | xargs ./misspell -i 'aircrafts,devels,invertions' -error
```
Notable `misspell` help options or flags are:
- `-i` string: ignore the following corrections, comma separated
- `-w`: Overwrite file with corrections (default is just to display)
### Benchmark Your Code
For changes that might have an impact on performance, please benchmark your