Commit graph

77 commits

Author SHA1 Message Date
Ed Page
592b36d23c chore: Release 2021-05-31 21:31:29 -05:00
Vanessasaurus
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 2021-05-28 19:35:00 -05:00
Ed Page
d45e7cf5a3 fix(cli): Don't crash on stdin
Fixes #264
2021-05-28 19:02:27 -05:00
Ed Page
7371d92b16 chore: Release 2021-05-28 08:34:11 -05:00
Ed Page
b4e198a280 chore: Release 2021-05-27 13:56:37 -05:00
Ed Page
8cb17d1363 chore: Release 2021-05-25 21:02:40 -05:00
Ed Page
3e66a99674 chore: Release 2021-05-21 20:41:02 -05:00
Ed Page
3995745362 chore: Release 2021-05-21 20:39:12 -05:00
Ed Page
7c803681c4 chore: Release 2021-05-13 09:58:09 -05:00
Ed Page
60950d02bb feat(cli): Colored output
This supports
- Basic capability detection
- NO_COLOR env variable
- tty detection
- CLI overrides

This does not yet support CLICOLOR.  I'll be trying to upstream all of
this into `yansi` and get it taken care of there.

This only supports Windows Anniversary edition and later which I think
is a fine compromise due to the ergonomic difference between `yansi` and
`termcolor`.

Fixes #30
2021-05-12 21:11:52 -05:00
Ed Page
5a4a707004 refactor(cli): Separate out bin 2021-05-04 21:47:34 -05:00
Ed Page
2fc1f5468e chore(cli): Allow building without expensive parts
The obvious case is building for docs.rs but this can be helpful for
special use cases or faster development iteration.
2021-04-30 21:31:25 -05:00
Ed Page
1f4c587692 chore({{crate_name}}): Release {{version}} 2021-04-14 19:13:25 -05:00
Ed Page
e787caa58e chore: Fix cargo release config 2021-04-13 21:31:13 -05:00
Ed Page
68c0a0d898 test(config): Ensure CLI overrides work 2021-04-07 21:14:41 -05:00
Ed Page
8bcacf3ca6 refactor(cli): Break out config->policy
This is prep for having many policies floating around
2021-03-29 20:27:12 -05:00
Ed Page
75ba4ac535 perf(config): Get small-string optimization 2021-03-01 12:25:51 -06:00
Ed Page
364e9f1dc8 refactor(bench): Switch to criterion 2021-02-05 21:38:44 -06:00
Ed Page
d6fa23b4a9 chore: Update dependencies 2021-02-04 21:40:07 -06:00
Ed Page
d32099e457 fix: Force a specific 'syn' version 2021-01-11 07:10:48 -06:00
dependabot-preview[bot]
b8d3190ce9
chore(deps): bump itertools from 0.9.0 to 0.10.0
Bumps [itertools](https://github.com/bluss/rust-itertools) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/bluss/rust-itertools/releases)
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bluss/rust-itertools/compare/v0.9.0...v0.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-03 03:40:45 +00:00
Ed Page
998fad4390 feat: Check and replace UTF-16 files
We don't have good detection for non-UTF encodings and don't have
encoding support for UTF-32, so limiting it to just UTF-16.

Fixes #17
2021-01-02 19:25:00 -06:00
Ed Page
bc90bacff2 refactor(typos): Pull out file logic 2021-01-02 13:10:30 -06:00
dependabot-preview[bot]
4acf11f040
chore(deps): bump proc-exit from 0.3.0 to 1.0.1
Bumps [proc-exit](https://github.com/assert-rs/proc-exit) from 0.3.0 to 1.0.1.
- [Release notes](https://github.com/assert-rs/proc-exit/releases)
- [Changelog](https://github.com/assert-rs/proc-exit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/assert-rs/proc-exit/compare/v0.3.0...v1.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-01 14:26:05 +00:00
dependabot-preview[bot]
31e8988b38
chore(deps): bump ahash from 0.5.7 to 0.6.1
Bumps [ahash](https://github.com/tkaitchuck/ahash) from 0.5.7 to 0.6.1.
- [Release notes](https://github.com/tkaitchuck/ahash/releases)
- [Commits](https://github.com/tkaitchuck/ahash/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-01 08:18:56 +00:00
Ed Page
e9b3378913 fix: Be friendlier with panics 2020-11-23 12:40:55 -06:00
Ed Page
b03df3aeae fix: Return more precise errors 2020-11-23 10:08:38 -06:00
Ed Page
869b916ca6 fix: Handle broken pipe 2020-11-21 21:57:12 -06:00
Ed Page
4ddbdcf5dd fix(cli): Define an error code policy
The main goal is to make spelling errors differentiated from other
errors.

Fixes #170
2020-11-14 21:17:29 -06:00
Ed Page
d258e62f43 feat(report): Diff output mode 2020-11-11 18:52:23 -06:00
Ed Page
150c5bfdc1 perf: Hash faster for custom dicts
If we have to hash for the custom dict, we might as well be fast about
it.  We do not need a cryptographically secure algorithm since the
content is fixed for the user.

Master:
```
real    0m26.675s
user    0m33.683s
sys     0m4.535s
```

With ahash:
```
real    0m23.993s
user    0m30.800s
sys     0m4.440s
```
2020-11-10 20:56:49 -06:00
Ed Page
e4edbc5f7e chore: Update dependencies 2020-11-10 19:47:13 -06:00
Ed Page
ab4a5bbdaf feat: Support english dialects
The goal is to be as accepting and unobtrusive to new code bases as
possible.  To this end, we correct typos into the closest english
dialect.

If someone wants to opt-in, they can have typos correct to a specific
english dialect.

Fixes #52
Fixes #22
2020-08-20 19:37:37 -05:00
Ed Page
f4400c2280 refactor(varcon): Pull out core types 2020-07-04 20:52:47 -05:00
Ed Page
7f983992bd feat(dict): varcon dict 2020-07-04 20:52:47 -05:00
Ed Page
814ff82aff refactor: Follow monorepo pattern elsewhere 2020-07-04 20:52:47 -05:00
Ed Page
d1be9c1944 feat: Replacement support
Now can fix typos!

Fixes #4
2020-07-04 20:52:46 -05:00
dependabot-preview[bot]
c187243300 chore(deps): bump assert_fs from 0.13.1 to 1.0.0
Bumps [assert_fs](https://github.com/assert-rs/assert_fs) from 0.13.1 to 1.0.0.
- [Release notes](https://github.com/assert-rs/assert_fs/releases)
- [Changelog](https://github.com/assert-rs/assert_fs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/assert-rs/assert_fs/commits/v1.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-04 20:52:46 -05:00
dependabot-preview[bot]
252420215d
chore(deps): bump toml from 0.4.10 to 0.5.5
Bumps [toml](https://github.com/alexcrichton/toml-rs) from 0.4.10 to 0.5.5.
- [Release notes](https://github.com/alexcrichton/toml-rs/releases)
- [Commits](https://github.com/alexcrichton/toml-rs/compare/0.4.10...0.5.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-01 22:14:42 +00:00
Ed Page
b21db206d2 chore: Update env_logger 2019-12-02 09:50:06 -07:00
dependabot-preview[bot]
b45157e955
chore(deps): bump assert_fs from 0.11.3 to 0.13.1
Bumps [assert_fs](https://github.com/assert-rs/assert_fs) from 0.11.3 to 0.13.1.
- [Release notes](https://github.com/assert-rs/assert_fs/releases)
- [Changelog](https://github.com/assert-rs/assert_fs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/assert-rs/assert_fs/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-02 14:07:04 +00:00
Ed Page
f9d1999740 chore(typos-cli): Release 0.1.4 2019-11-02 20:10:00 -06:00
Ed Page
0d9fd9a34e chore(typos): Release 0.3.0 2019-11-02 19:59:59 -06:00
Ed Page
06db6fc693 refactor!: Move off of failure 2019-10-29 11:36:50 -06:00
Ed Page
ea93373b37 chore(typos-cli): Release 0.1.3 2019-10-29 09:09:53 -06:00
Ed Page
ac90322c37 chore(typos-cli): Release 0.1.2 2019-10-29 08:36:00 -06:00
Ed Page
b10b7756f6 chore(typos): Release 0.2.0 2019-10-29 08:33:35 -06:00
Ed Page
0208dfadba chore(typos-dict): Release 0.2.0 2019-10-29 08:31:56 -06:00
Ed Page
0f06e602cb feat: Expose wikipedia's dict to Rust 2019-10-28 13:41:00 -06:00