mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-25 09:02:12 -05:00
parent
4e59b27518
commit
7eb8873950
1 changed files with 11 additions and 11 deletions
|
@ -35,25 +35,25 @@ to re-work some of it and the discouragement that goes along with that.
|
|||
|
||||
Format: `typo,correction[,correction...]`
|
||||
|
||||
2. Verify your change
|
||||
2. Code-gen the dictionary
|
||||
|
||||
Run
|
||||
```bash
|
||||
cargo run --package typos-dict-verify -- --input crates/typos-dict/assets/words.csv --output crates/typos-dict/assets/words.csv
|
||||
```console
|
||||
$ SNAPSHOTS=overwrite cargo test --workspace
|
||||
```
|
||||
(we do development-time code-gen to speed up builds)
|
||||
|
||||
3. Verify your change
|
||||
|
||||
Run
|
||||
```console
|
||||
$ cargo test --workspace
|
||||
```
|
||||
Auto-cleans up your change according to some rules we have like:
|
||||
- Don't prefer specific dialects in the dictionary, leaving those to [`varcon`](http://wordlist.aspell.net/varcon-readme/).
|
||||
- Mixing up corrections and typos
|
||||
- etc
|
||||
|
||||
3. Code-gen the dictionary
|
||||
|
||||
Run
|
||||
```bash
|
||||
cargo run --package typos-dict-codegen -- --output crates/typos-dict/src/dict_codegen.rs
|
||||
```
|
||||
(we do development-time code-gen to speed up builds)
|
||||
|
||||
### Process
|
||||
|
||||
When you first post a PR, we request that the commit history get cleaned
|
||||
|
|
Loading…
Reference in a new issue