Skip to content

Commit 613599d

Browse files
committed
Migrate to config.json
This allows repository branches to configure dictionary_source_prefixes, check_extra_dictionaries, and extra_dictionaries independently via config.json Disable allow-hunspell by default. Hunspell is useful if you are using a foreign language, but the base config does not include that.
1 parent 26b0b32 commit 613599d

File tree

2 files changed

+95
-76
lines changed

2 files changed

+95
-76
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"dictionary_source_prefixes": {
3+
"asm": "https://raw.githubusercontent.com/check-spelling/assembly-dictionaries/20231110/",
4+
"cspell": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20230509/dictionaries/",
5+
"cspell1": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20241114/dictionaries/",
6+
"census": "https://raw.githubusercontent.com/check-spelling-sandbox/census/dictionaries-d90e686f89dd241ad61d30f26619e54d73e73c6e/dictionaries/"
7+
},
8+
"extra_dictionaries": [
9+
"cspell1:software-terms/softwareTerms.txt",
10+
""
11+
],
12+
"check_extra_dictionaries": [
13+
"asm:amd64-isa.txt",
14+
"asm:ia64-isa.txt",
15+
"asm:power-isa.txt",
16+
"cspell1:ada/ada.txt",
17+
"cspell1:aws/aws.txt",
18+
"cspell1:clojure/clojure.txt",
19+
"cspell1:companies/companies.txt",
20+
"cspell1:cpp/compiler-clang-attributes.txt",
21+
"cspell1:cpp/compiler-gcc.txt",
22+
"cspell1:cpp/compiler-msvc.txt",
23+
"cspell1:cpp/ecosystem.txt",
24+
"cspell1:cpp/lang-jargon.txt",
25+
"cspell1:cpp/lang-keywords.txt",
26+
"cspell1:cpp/people.txt",
27+
"cspell1:cpp/stdlib-c.txt",
28+
"cspell1:cpp/stdlib-cerrno.txt",
29+
"cspell1:cpp/stdlib-cmath.txt",
30+
"cspell1:cpp/stdlib-cpp.txt",
31+
"cspell1:cpp/template-strings.txt",
32+
"cspell1:cryptocurrencies/cryptocurrencies.txt",
33+
"cspell1:csharp/csharp.txt",
34+
"cspell1:css/css.txt",
35+
"cspell1:dart/dart.txt",
36+
"cspell1:django/django.txt",
37+
"cspell1:django/requirements.txt",
38+
"cspell1:docker/docker-words.txt",
39+
"cspell1:dotnet/dotnet.txt",
40+
"cspell1:elixir/elixir.txt",
41+
"cspell1:filetypes/filetypes.txt",
42+
"cspell1:fonts/fonts.txt",
43+
"cspell1:fullstack/fullstack.txt",
44+
"cspell1:gaming-terms/gaming-terms.txt",
45+
"cspell1:golang/go.txt",
46+
"cspell1:haskell/haskell.txt",
47+
"cspell1:html/html.txt",
48+
"cspell1:java/java-terms.txt",
49+
"cspell1:java/java.txt",
50+
"cspell1:k8s/k8s.txt",
51+
"cspell1:latex/latex.txt",
52+
"cspell1:latex/samples/sample-words.txt",
53+
"cspell1:lisp/lisp.txt",
54+
"cspell1:lorem-ipsum/dictionary.txt",
55+
"cspell1:lua/lua.txt",
56+
"cspell1:mnemonics/mnemonics.txt",
57+
"cspell1:monkeyc/monkeyc_keywords.txt",
58+
"cspell1:node/node.txt",
59+
"cspell1:npm/npm.txt",
60+
"cspell1:php/php.txt",
61+
"cspell1:powershell/powershell.txt",
62+
"cspell1:public-licenses/generated/public-licenses.txt",
63+
"cspell1:python/additional_words.txt",
64+
"cspell1:python/common/extra.txt",
65+
"cspell1:python/python/python-lib.txt",
66+
"cspell1:python/python/python.txt",
67+
"cspell1:r/r.txt",
68+
"cspell1:redis/redis.txt",
69+
"cspell1:ruby/ruby.txt",
70+
"cspell1:rust/rust.txt",
71+
"cspell1:scala/scala.txt",
72+
"cspell1:shell/shell-all-words.txt",
73+
"cspell1:software-terms/software-terms.txt",
74+
"cspell1:software-terms/webServices.txt",
75+
"cspell1:sql/sql.txt",
76+
"cspell1:sql/tsql.txt",
77+
"cspell1:svelte/svelte.txt",
78+
"cspell1:swift/swift.txt",
79+
"cspell1:typescript/typescript.txt",
80+
"census:census-5.txt",
81+
""
82+
]
83+
}

.github/workflows/spelling.yml

Lines changed: 12 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -111,84 +111,20 @@ jobs:
111111
experimental_apply_changes_via_bot: 1
112112
use_sarif: 1
113113
extra_dictionary_limit: 20
114-
dictionary_source_prefixes: >
114+
allow-hunspell: false
115+
load-config-from: |
115116
{
116-
"asm": "https://raw.githubusercontent.com/check-spelling/assembly-dictionaries/20231110/",
117-
"cspell": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20230509/dictionaries/",
118-
"cspell1": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20241114/dictionaries/",
119-
"census": "https://raw.githubusercontent.com/check-spelling-sandbox/census/dictionaries-d90e686f89dd241ad61d30f26619e54d73e73c6e/dictionaries/"
117+
"pr-base-keys": [
118+
"check_extra_dictionaries",
119+
"dictionary_source_prefixes",
120+
"extra_dictionaries",
121+
""
122+
],
123+
"pr-trusted-keys": [
124+
""
125+
],
126+
"": []
120127
}
121-
check_extra_dictionaries: |
122-
asm:amd64-isa.txt
123-
asm:ia64-isa.txt
124-
asm:power-isa.txt
125-
cspell1:ada/ada.txt
126-
cspell1:aws/aws.txt
127-
cspell1:clojure/clojure.txt
128-
cspell1:companies/companies.txt
129-
cspell1:cpp/compiler-clang-attributes.txt
130-
cspell1:cpp/compiler-gcc.txt
131-
cspell1:cpp/compiler-msvc.txt
132-
cspell1:cpp/ecosystem.txt
133-
cspell1:cpp/lang-jargon.txt
134-
cspell1:cpp/lang-keywords.txt
135-
cspell1:cpp/people.txt
136-
cspell1:cpp/stdlib-c.txt
137-
cspell1:cpp/stdlib-cerrno.txt
138-
cspell1:cpp/stdlib-cmath.txt
139-
cspell1:cpp/stdlib-cpp.txt
140-
cspell1:cpp/template-strings.txt
141-
cspell1:cryptocurrencies/cryptocurrencies.txt
142-
cspell1:csharp/csharp.txt
143-
cspell1:css/css.txt
144-
cspell1:dart/dart.txt
145-
cspell1:django/django.txt
146-
cspell1:django/requirements.txt
147-
cspell1:docker/docker-words.txt
148-
cspell1:dotnet/dotnet.txt
149-
cspell1:elixir/elixir.txt
150-
cspell1:filetypes/filetypes.txt
151-
cspell1:fonts/fonts.txt
152-
cspell1:fullstack/fullstack.txt
153-
cspell1:gaming-terms/gaming-terms.txt
154-
cspell1:golang/go.txt
155-
cspell1:haskell/haskell.txt
156-
cspell1:html/html.txt
157-
cspell1:java/java-terms.txt
158-
cspell1:java/java.txt
159-
cspell1:k8s/k8s.txt
160-
cspell1:latex/latex.txt
161-
cspell1:latex/samples/sample-words.txt
162-
cspell1:lisp/lisp.txt
163-
cspell1:lorem-ipsum/dictionary.txt
164-
cspell1:lua/lua.txt
165-
cspell1:mnemonics/mnemonics.txt
166-
cspell1:monkeyc/monkeyc_keywords.txt
167-
cspell1:node/node.txt
168-
cspell1:npm/npm.txt
169-
cspell1:php/php.txt
170-
cspell1:powershell/powershell.txt
171-
cspell1:public-licenses/generated/public-licenses.txt
172-
cspell1:python/additional_words.txt
173-
cspell1:python/common/extra.txt
174-
cspell1:python/python/python-lib.txt
175-
cspell1:python/python/python.txt
176-
cspell1:r/r.txt
177-
cspell1:redis/redis.txt
178-
cspell1:ruby/ruby.txt
179-
cspell1:rust/rust.txt
180-
cspell1:scala/scala.txt
181-
cspell1:shell/shell-all-words.txt
182-
cspell1:software-terms/software-terms.txt
183-
cspell1:software-terms/webServices.txt
184-
cspell1:sql/sql.txt
185-
cspell1:sql/tsql.txt
186-
cspell1:svelte/svelte.txt
187-
cspell1:swift/swift.txt
188-
cspell1:typescript/typescript.txt
189-
census:census-5.txt
190-
extra_dictionaries: |
191-
cspell1:software-terms/softwareTerms.txt
192128
193129
comment-push:
194130
name: Report (Push)

0 commit comments

Comments
 (0)