Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Make sure hyphenated words work in ignoreWords #1520

Merged
merged 5 commits into from Aug 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 11 additions & 14 deletions integration-tests/config/config.json
Expand Up @@ -3,7 +3,7 @@
{
"path": "php/php-src",
"url": "https://github.com/php/php-src.git",
"commit": "b80767e219dbcda5412a5d910c6430b83b747c6e",
"commit": "3398efa597cee7e058dbe0fcacbe0e9cc0848151",
"args": [
"--config=${repoConfig}/cspell.json",
"**/*.{md,c,h,php}"
Expand Down Expand Up @@ -36,7 +36,7 @@
{
"path": "wireapp/wire-webapp",
"url": "https://github.com/wireapp/wire-webapp.git",
"commit": "155ff6bb57b54a1f52c7c25eab6d824affe09cfe",
"commit": "c888d2ca7b39c12b471b4db1ebe8a2b2f463e47b",
"args": [
"src/script/**/*.{js,ts,tsx,md}"
]
Expand Down Expand Up @@ -79,7 +79,7 @@
{
"path": "aws-amplify/docs",
"url": "https://github.com/aws-amplify/docs.git",
"commit": "7ffbcb0b2e3c639692b5a246f5ad02ddb6d90f18",
"commit": "80d331460ae449338242b0a530f2f17d90c9053d",
"args": [
"docs/**/*.md"
]
Expand All @@ -97,11 +97,8 @@
{
"path": "prettier/prettier",
"url": "https://github.com/prettier/prettier.git",
"commit": "0507897bdef8f8cdaec0b1de35bda3cda56e20e5",
"args": [
".github/**/*",
"**/*.*"
]
"commit": "53f95f35005777a4b569d609cda46f0491bca6ac",
"args": []
},
{
"path": "webpack/webpack",
Expand Down Expand Up @@ -149,7 +146,7 @@
{
"path": "microsoft/TypeScript-Website",
"url": "https://github.com/microsoft/TypeScript-Website.git",
"commit": "9fe157a2333637c1e86187a23bb6ceedb6f43b33",
"commit": "ac32dffef57a2f0cfc3f9d32e74f5246149299a3",
"args": [
"--config=${repoConfig}/cspell.json",
"**/*.*"
Expand All @@ -162,7 +159,7 @@
"--config=cSpell.json",
"**/*.{md,ts,js}"
],
"commit": "1e9e2b41c471029b643e58f65caccdd0492a1576"
"commit": "9593dd087d60017b83cfc590ffea5d7374a3f734"
},
{
"path": "pycontribs/jira",
Expand All @@ -183,15 +180,15 @@
{
"path": "TheAlgorithms/Python",
"url": "https://github.com/TheAlgorithms/Python.git",
"commit": "d668c172b07bf9f54d63dc295016a96ec782a541",
"commit": "3c225247b843233a306a94907f862bece6e637dc",
"args": [
"**/*.{md,py}"
]
},
{
"path": "django/django",
"url": "https://github.com/django/django.git",
"commit": "54a30a7a00fea6c5e3702282ade6e0238e06de3b",
"commit": "6c3525a09db5177bf4e3856de85bf8b1300402d5",
"args": [
"**/*.{md,py}"
]
Expand Down Expand Up @@ -256,7 +253,7 @@
"-e",
"{*.BUILD,BUILD,CHANGELOG.md,*.sh,*.cfg,*.ps1,Dockerfile.*,*.Dockerfile,*.{yaml,xml,json,cmake}}"
],
"commit": "1468b5eaf6fc6ceb46f8edaee237d8c30dc5ca5f"
"commit": "0f5e785f14fc21315d6c6fc98ace87da9182dbaa"
},
{
"path": "graphql/graphql-spec",
Expand Down Expand Up @@ -292,7 +289,7 @@
"args": [
"**/*.*"
],
"commit": "c4e397ede15d1c4d54424c3ac518204babc2df99"
"commit": "e98029969f9552758393e03abd8c151c2e8bd2f7"
}
]
}
1 change: 1 addition & 0 deletions integration-tests/repositories/cspell.yaml
Expand Up @@ -8,6 +8,7 @@ ignorePaths:
- "*.ktx"
- "*.idmap" # DOOM, cspell:ignore idmap
- "*.ogex" # DOOM, cspell:ignore ogex
- "**/prettier/"

import:
- "./cspell-latex.json"
Expand Down
Expand Up @@ -3,7 +3,7 @@ Repository: Azure/azure-rest-api-specs
Url: "https://github.com/Azure/azure-rest-api-specs.git"
Args: ["--config=cSpell.json","**/*.{md,ts,js}"]
Lines:
CSpell: Files checked: 1666, Issues found: 1678 in 560 files
CSpell: Files checked: 1666, Issues found: 1683 in 561 files
exit code: 1
./README.md:20:179 - Unknown word (Dataplane) -- RPs' Resource types or Dataplane API versions that represent
./README.md:30:134 - Unknown word (dataplane) -- per resource type or dataplane service version. This
Expand Down Expand Up @@ -160,6 +160,7 @@ Lines:
./specification/domainservices/resource-manager/readme.md:38:35 - Unknown word (oucontainer) -- AAD/stable/2021-05-01/oucontainer.json
./specification/edgeorder/resource-manager/readme.go.md:9:14 - Unknown word (edgeorder) -- namespace: edgeorder
./specification/edgeorderpartner/resource-manager/readme.md:39:57 - Unknown word (edgeorderpartner) -- preview/2020-12-01-preview/edgeorderpartner.json
./specification/eventgrid/data-plane/readme.md:64:29 - Unknown word (Jhon) -- senderDisplayName": "Jhon",
./specification/eventgrid/resource-manager/readme.go.md:14:28 - Unknown word (armeventgrid) -- name: sdk/eventgrid/armeventgrid
./specification/eventhub/resource-manager/readme.go.md:14:27 - Unknown word (armeventhub) -- module-name: sdk/eventhub/armeventhub
./specification/eventhub/resource-manager/readme.md:87:49 - Unknown word (networkrulessets) -- preview/2021-01-01-preview/networkrulessets-preview.json
Expand Down
10 changes: 5 additions & 5 deletions integration-tests/snapshots/TheAlgorithms/Python/snapshot.txt
Expand Up @@ -511,9 +511,9 @@ Lines:
./graphs/minimum_spanning_tree_kruskal2.py:51:49 - Unknown word (neighbouring) -- from the node to the neighbouring nodes (with weights
./graphs/minimum_spanning_tree_prims2.py:220:11 - Unknown word (algo) -- def prims_algo(
./graphs/minimum_spanning_tree_prims2.py:2:23 - Unknown word (Jarník's) -- Prim's (also known as Jarník's) algorithm is a greedy
./graphs/multi_heuristic_astar.py:134:16 - Unknown word (inad) -- close_list_inad,
./graphs/multi_heuristic_astar.py:138:9 - Unknown word (itera) -- for itera in range(n_heuristic
./graphs/multi_heuristic_astar.py:44:18 - Unknown word (prito) -- for (prito, yyy) in temp:
./graphs/multi_heuristic_astar.py:136:16 - Unknown word (inad) -- close_list_inad,
./graphs/multi_heuristic_astar.py:140:9 - Unknown word (itera) -- for itera in range(n_heuristic
./graphs/multi_heuristic_astar.py:46:18 - Unknown word (prito) -- for (prito, yyy) in temp:
./graphs/scc_kosaraju.py:24:5 - Unknown word (kosaraju) -- def kosaraju():
./graphs/strongly_connected_components.py:41:36 - Unknown word (strongliy) -- first search to find strongliy connected
./graphs/tarjans_scc.py:16:42 - Unknown word (equireachable) -- we save it and it's equireachable vertices as a strongly
Expand Down Expand Up @@ -876,8 +876,8 @@ Lines:
./strings/lower.py:8:6 - Unknown word (hellzo) -- 'hellzo'
./strings/manacher.py:4:6 - Unknown word (abbba) -- 'abbba'
./strings/manacher.py:5:29 - Unknown word (ababa) -- palindromic_string('ababa')
./strings/naive_string_search.py:16:31 - Unknown word (ABAAABCDBBABCDDEBCABC) -- naive_pattern_search("ABAAABCDBBABCDDEBCABC", "ABC")
./strings/naive_string_search.py:24:31 - Unknown word (ABCDEGFTEST) -- naive_pattern_search("ABCDEGFTEST", "TEST")
./strings/naive_string_search.py:14:31 - Unknown word (ABAAABCDBBABCDDEBCABC) -- naive_pattern_search("ABAAABCDBBABCDDEBCABC", "ABC")
./strings/naive_string_search.py:22:31 - Unknown word (ABCDEGFTEST) -- naive_pattern_search("ABCDEGFTEST", "TEST")
./strings/prefix_function.py:17:60 - Unknown word (sufix) -- coincidence of prefix and sufix
./strings/prefix_function.py:22:26 - Unknown word (aabcdaabc) -- >> prefix_function("aabcdaabc")
./strings/prefix_function.py:24:26 - Unknown word (asdasdad) -- >> prefix_function("asdasdad")
Expand Down
3 changes: 1 addition & 2 deletions integration-tests/snapshots/django/django/snapshot.txt
Expand Up @@ -3,7 +3,7 @@ Repository: django/django
Url: "https://github.com/django/django.git"
Args: ["**/*.{md,py}"]
Lines:
CSpell: Files checked: 2130, Issues found: 7872 in 899 files
CSpell: Files checked: 2130, Issues found: 7871 in 899 files
exit code: 1
./django/apps/config.py:128:76 - Unknown word (isclass) -- getmembers(mod, inspect.isclass)
./django/apps/registry.py:132:40 - Unknown word (unconfigured) -- not ready" is due to unconfigured settings, accessing
Expand Down Expand Up @@ -1808,7 +1808,6 @@ Lines:
./tests/raw_query/tests.py:30:44 - Unknown word (Shaston) -- walking homeward from Shaston to the village of Marlott
./tests/raw_query/tests.py:324:93 - Unknown word (bookfkaspk) -- default FROM raw_query_bookfkaspk')), [b])
./tests/requests/tests.py:170:56 - Unknown word (سلام) -- PATH_INFO': wsgi_str("/سلام/"), 'REQUEST_METHOD
./tests/requests/tests.py:204:53 - Unknown word (nabcd) -- BytesIO(b'1234\n5678\nabcd\nefgh\nijkl'), 24)
./tests/requests/tests.py:204:59 - Unknown word (nefgh) -- BytesIO(b'1234\n5678\nabcd\nefgh\nijkl'), 24)
./tests/requests/tests.py:204:65 - Unknown word (nijkl) -- 4\n5678\nabcd\nefgh\nijkl'), 24)
./tests/requests/tests.py:214:48 - Unknown word (efgh) -- stream.readline(4), b'efgh')
Expand Down