Skip to content

Commit

Permalink
Merge pull request #63 from epage/dict
Browse files Browse the repository at this point in the history
Prepare for dict cleanup
  • Loading branch information
epage authored Oct 29, 2019
2 parents 03fa6f8 + 2e95e5e commit 2684b9b
Show file tree
Hide file tree
Showing 39 changed files with 165,303 additions and 35,642 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

67 changes: 66 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[workspace]
members = ["codegen", "typos", "typos-dict"]
members = [
"typos",
"dict/typos", "dict/typos/codegen",
"dict/codespell", "dict/codespell/codegen",
"dict/misspell", "dict/misspell/codegen",
"dict/wikipedia", "dict/wikipedia/codegen",
]

[package]
name = "typos-cli"
Expand All @@ -24,7 +30,9 @@ codecov = { repository = "crate-ci/typos" }

[dependencies]
typos = { version = "0.1", path = "typos" }
typos-dict = { version = "0.1", path = "typos-dict" }
typos-dict = { version = "0.1", path = "dict/typos" }
phf = { version = "0.8", features = ["unicase"] }
unicase = "2.5"
failure = "0.1"
structopt = "0.3"
clap = "2"
Expand Down
13 changes: 11 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,17 @@ stages:
steps:
- template: azure/install-rust.yml@templates
- script: |
cargo run --package typos-codegen -- --input typos-dict/assets/words.csv --output typos-dict/src/dict_codegen.rs --check
displayName: Verify Code-gen
cargo run --package typos-codegen -- --output dict/typos/src/dict_codegen.rs --check
displayName: Verify typos-dict
- script: |
cargo run --package codespell-codegen -- --output dict/codespell/src/dict_codegen.rs --check
displayName: Verify codespell-dict
- script: |
cargo run --package misspell-codegen -- --output dict/misspell/src/dict_codegen.rs --check
displayName: Verify misspell-dict
- script: |
cargo run --package wikipedia-codegen -- --output dict/wikipedia/src/dict_codegen.rs --check
displayName: Verify wikipedia-dict
- stage: committed
displayName: Lint History
dependsOn: []
Expand Down
21 changes: 21 additions & 0 deletions dict/codespell/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "codespell-dict"
version = "0.1.1"
authors = ["Ed Page <[email protected]>"]
description = "Source Code Spelling Correction"
repository = "https://github.com/crate-ci/typos"
readme = "README.md"
categories = ["development-tools", "text-processing"]
keywords = ["development", "spelling"]
license = "CC-BY-SA-3.0"
edition = "2018"
publish = false

[badges]
azure-devops = { project = "crate-ci", pipeline = "typos" }
codecov = { repository = "crate-ci/typos" }

[dependencies]
phf = { version = "0.8", features = ["unicase"] }
unicase = "2.5"
log = "0.4"
5 changes: 5 additions & 0 deletions dict/codespell/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Origin: [codespell](https://github.com/codespell-project/codespell)

# License

dictionary.txt is a derived work of English Wikipedia and is released under the Creative Commons Attribution-Share-Alike License 3.0 http://creativecommons.org/licenses/by-sa/3.0/
Loading

0 comments on commit 2684b9b

Please sign in to comment.