Commit Graph
555 Commits
Author SHA1 Message Date
Ed Page 0aaa2c0d60 Merge pull request #272 from epage/phf1
refactor(varcon): Remove reliance on const-fn
2021-06-05 11:50:35 -05:00
Ed Page 0836966135 Merge pull request #274 from Hamdor/patch-1
Fix example in github-action.md
2021-06-05 10:03:55 -05:00
Ed Page 15e8914103 Merge pull request #275 from Hamdor/patch-2
Fix link to github-action.md in README.md
2021-06-05 10:03:14 -05:00
Marian Triebe f48b604a6a Fix link to github-action.md in README.md 2021-06-05 10:26:13 +02:00
Marian Triebe 7141c710c8 Fix example in github-action.md
The repository of crate-ci/typos does not have a "main" branch, "master" is used instead.
2021-06-05 10:17:32 +02:00
Ed Page 2b1f565eaa refactor(varcon): Remove reliance on const-fn
This dropped RSS (memory usage) from 4GB to 1.5GB when compiling.

The extra `match` could impact performance but not too concerned since
the default is to not look within vars.
2021-06-04 15:01:08 -05:00
Ed Page b1cf03c7eb refactor(varcon): Move away from PHF
This is mostly to give implementation flexibility for changing out how
we store the data to reduce compilation memory usage.

This does have performance impact, jumping from ~220ns to ~320ns for a
dict lookup, according to our micro benchmarks.
2021-06-04 14:59:46 -05:00
Ed Page 5a05a06a70 perf(cli): Expand dict benchmark 2021-06-04 09:34:33 -05:00
Ed Page 57bf109ddd Merge pull request #271 from epage/override
docs(cli): Clarify help string for 'exclude'
2021-06-03 20:47:02 -05:00
Ed Page 6365eeb0ce docs(cli): Clarify help string for 'exclude'
Fixes #269
2021-06-03 20:04:46 -05:00
Ed Page 592b36d23c chore: Release v1.0.4 2021-05-31 21:31:29 -05:00
Ed Page b7ec6c0f0f chore: Update dependencies 2021-05-31 20:59:24 -05:00
Ed Page 024c49229a docs: Update changelog 2021-05-31 19:51:34 -05:00
Ed Page cf1cabd446 docs(readme): Tweak integrations org 2021-05-31 19:51:03 -05:00
Vanessasaurusandvsoch 7d09c5a4bf feat(ci): adding github action to use typos to check spelling (#267)
Signed-off-by: vsoch <vsoch@users.noreply.github.com>

Co-authored-by: vsoch <vsoch@users.noreply.github.com>
2021-05-31 19:42:45 -05:00
Ed Page 96341acd48 chore: Release v1.0.3 2021-05-28 19:35:00 -05:00
Ed Page 9a04e50a88 test: Verify CLI 2021-05-28 19:34:49 -05:00
Ed Page bb4b3dad88 Merge pull request #265 from epage/redirect
fix(cli): Don't crash on stdin
2021-05-28 19:33:50 -05:00
Ed Page 8d50285a05 docs(cli): Fix a ... typo 2021-05-28 19:08:24 -05:00
Ed Page c44371035a docs(cli): Improve some wording 2021-05-28 19:07:20 -05:00
Ed Page d45e7cf5a3 fix(cli): Don't crash on stdin
Fixes #264
2021-05-28 19:02:27 -05:00
Ed Page 7d1fbe5442 docs: Missed a false-positive case 2021-05-28 18:42:09 -05:00
Ed Page a33196d0d8 docs: Add debugging steps 2021-05-28 18:37:01 -05:00
Ed Page cff8cadc6e docs: Create a Getting Started 2021-05-28 11:09:41 -05:00
Ed Page 7371d92b16 chore: Release v1.0.2 2021-05-28 08:34:11 -05:00
Ed Page 4392ed3f78 Merge pull request #262 from epage/slovak
fix(cli): Don't panic when finding column
2021-05-28 08:33:28 -05:00
Ed Page 9859e60077 fix(cli): Don't panic when finding column
When rendering typos, we look up what visual column the typoe starts on
but I mixed a raw byte offset with the offset into a lossy string.  This
caused panics when dealing with non-ascii content.

Fixes #258
2021-05-27 21:28:42 -05:00
Ed Page b4e198a280 chore: Release v1.0.1 2021-05-27 13:56:37 -05:00
Ed Page 9f5de0f6a9 Merge pull request #260 from epage/lines
fix: Count lines correctly
2021-05-27 13:54:15 -05:00
Ed Page 2b5699180c fix: Count lines correctly
I didn't count on how `buffer.lines().count()` would handle different
corner cases, like slices with no `\n`, slices with trailing `\n`, etc.

Fixes #259
2021-05-27 13:24:38 -05:00
Ed Page 8cb17d1363 chore: Release v1.0.0 2021-05-25 21:02:40 -05:00
Ed Page 1cb9b37120 chore: Update codespell dict
Based on 2ed354c at https://github.com/codespell-project/codespell
2021-05-22 21:44:56 -05:00
Ed Page 8f364d90a0 perf: Re-enable large-file checks 2021-05-22 21:21:03 -05:00
Ed Page 8a19ec5059 docs: Remove reference to misspell-rs
This project seems to be dead
2021-05-22 21:17:37 -05:00
Ed Page 36131c2bee perf: Measure latest performance 2021-05-22 21:15:34 -05:00
Ed Page 3e66a99674 chore: Release codespell-dict-v0.4.0 misspell-codegen-v0.4.0 misspell-dict-v0.4.0 typos-dict-codegen-v1.3.0 typos-dict-v0.5.0 typos-dict-verify-v1.3.0 typos-v0.6.0 typos-vars-codegen-v1.3.0 typos-vars-v0.5.0 v0.4.0 varcon-codegen-v1.3.0 varcon-core-v2.1.0 varcon-v0.5.0 wikipedia-codegen-v0.4.0 wikipedia-dict-v0.4.0 codespell-codegen-v0.4.0 2021-05-21 20:41:02 -05:00
Ed Page 3995745362 chore: Release varcon-core-v2.0.0 2021-05-21 20:39:12 -05:00
Ed Page bd135c4ac9 test: Update benchsuite 2021-05-21 20:34:50 -05:00
Ed Page 65d0ea238b docs: Update changelog 2021-05-21 18:29:17 -05:00
Ed Page 8863874e33 tests: Measure ascii perf 2021-05-21 18:24:24 -05:00
Ed Page 5eb4665c83 Merge pull request #255 from epage/ignore
feat(ignore): Typos=specific ignores
2021-05-21 09:23:57 -05:00
Ed Page 327a84a242 feat(ignore): Typos=specific ignores
We want both CLI and config ignores.  The question then is what we make
them relative to.  I decided to favor CLI with `.`.  We'll see how this
works out

Fixes #134
2021-05-20 21:00:28 -05:00
Ed Page 0cf16750cc docs: Balance the parens 2021-05-19 19:54:51 -05:00
Ed Page 0b9733c606 docs: Remove dead space 2021-05-19 19:49:51 -05:00
Ed Page 75b170c2b4 docs: Include screenshot
Fixes #237
2021-05-19 19:48:33 -05:00
Ed Page 36935481eb Merge pull request #254 from epage/perf
perf(dict): Bypass vars when possible
2021-05-19 19:42:08 -05:00
Ed Page b99f32dea8 perf(dict): Bypass vars when possible
Variant support slows us down by 10-50$.  I assume most people will run
with `en` and so most of this overhead is to waste.  So instead of
merging vars with dict, let's instead get a quick win by just skipping
vars when we don't need to.  If the assumptions behind this change over
time or if there is need for speeding up a specific locale, we can
re-address this.

Before:
```
check_file/Typos/code   time:   [35.860 us 36.021 us 36.187 us]
                        thrpt:  [8.0117 MiB/s 8.0486 MiB/s 8.0846 MiB/s]
check_file/Typos/corpus time:   [26.966 ms 27.215 ms 27.521 ms]
                        thrpt:  [21.127 MiB/s 21.365 MiB/s 21.562 MiB/s]
```
After:
```
check_file/Typos/code   time:   [33.837 us 33.928 us 34.031 us]
                        thrpt:  [8.5191 MiB/s 8.5452 MiB/s 8.5680 MiB/s]
check_file/Typos/corpus time:   [17.521 ms 17.620 ms 17.730 ms]
                        thrpt:  [32.794 MiB/s 32.999 MiB/s 33.184 MiB/s]
```

This puts us inline with `--no-default-features --features dict`

Fixes #253
2021-05-19 13:55:41 -05:00
Ed Page d65fa79d0e refactor(dict): Make feature flag paths clearer 2021-05-18 19:45:11 -05:00
Ed Page e6c595c585 Merge pull request #252 from epage/dict
fix(dict): Handle cases from Linux
2021-05-18 13:13:58 -05:00
Ed Page 639e65b88a fix(dict): Handle cases from Linux
These were found while running `typos` on Linux and inspecting a
sampling of the results.  #249 represents additional changes to make.
There were some identifiers, that looked like hardware registers, that
I'm unsure of what can be done for them.
2021-05-18 12:02:03 -05:00