Skip to content

Commit 57d1d04

Browse files
committed
CI: Move some config to spelling/config.json
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
1 parent 3f8cf7d commit 57d1d04

2 files changed

Lines changed: 38 additions & 27 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"dictionary_source_prefixes": {
3+
"cspell": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20241114/dictionaries/",
4+
"census": "https://raw.githubusercontent.com/check-spelling-sandbox/census/dictionaries-d90e686f89dd241ad61d30f26619e54d73e73c6e/dictionaries/"
5+
},
6+
"extra_dictionaries": [
7+
"cspell:software-terms/softwareTerms.txt",
8+
"census:census-5.txt",
9+
"cspell:npm/npm.txt",
10+
"cspell:k8s/k8s.txt",
11+
"cspell:node/node.txt",
12+
"cspell:aws/aws.txt",
13+
"cspell:python/python/python-lib.txt",
14+
"cspell:golang/go.txt",
15+
"cspell:typescript/typescript.txt",
16+
"cspell:shell/shell-all-words.txt",
17+
"cspell:filetypes/filetypes.txt",
18+
"cspell:html/html.txt",
19+
"cspell:fonts/fonts.txt",
20+
"cspell:php/php.txt",
21+
"cspell:css/css.txt",
22+
"cspell:fullstack/fullstack.txt",
23+
"cspell:cpp/stdlib-cmath.txt",
24+
"cspell:powershell/powershell.txt",
25+
"cspell:dart/dart.txt",
26+
""
27+
],
28+
"check_extra_dictionaries": ""
29+
}

scripts/spelling.sh

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -82,40 +82,22 @@ script=$(find_script)
8282

8383
INPUTS=$(yq --output-format=json <<EOF
8484
suppress_push_for_open_pull_request: 1
85-
checkout: true
8685
check_file_names: 1
8786
post_comment: 0
8887
use_magic_file: 1
8988
ignore-next-line: spell-checker:disable-next-line
9089
report-timing: 1
9190
warnings: bad-regex,binary-file,deprecated-feature,ignored-expect-variant,large-file,limited-references,no-newline-at-eof,noisy-file,non-alpha-in-dictionary,token-is-substring,unexpected-line-ending,whitespace-in-dictionary,minified-file,unsupported-configuration,no-files-to-check
9291
use_sarif: ${CI:-0}
93-
check_extra_dictionaries: ""
94-
dictionary_source_prefixes: >
95-
{
96-
"cspell": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20241114/dictionaries/",
97-
"census": "https://raw.githubusercontent.com/check-spelling-sandbox/census/dictionaries-d90e686f89dd241ad61d30f26619e54d73e73c6e/dictionaries/"
98-
}
99-
extra_dictionaries:
100-
cspell:software-terms/softwareTerms.txt
101-
census:census-5.txt
102-
cspell:npm/npm.txt
103-
cspell:k8s/k8s.txt
104-
cspell:node/node.txt
105-
cspell:aws/aws.txt
106-
cspell:python/python/python-lib.txt
107-
cspell:golang/go.txt
108-
cspell:typescript/typescript.txt
109-
cspell:shell/shell-all-words.txt
110-
cspell:filetypes/filetypes.txt
111-
cspell:html/html.txt
112-
cspell:fonts/fonts.txt
113-
cspell:php/php.txt
114-
cspell:css/css.txt
115-
cspell:fullstack/fullstack.txt
116-
cspell:cpp/stdlib-cmath.txt
117-
cspell:powershell/powershell.txt
118-
cspell:dart/dart.txt
92+
load-config-from: |
93+
{
94+
"pr-base-keys": [
95+
"check_extra_dictionaries",
96+
"dictionary_source_prefixes",
97+
"extra_dictionaries",
98+
""
99+
]
100+
}
119101
EOF
120102
)
121103

0 commit comments

Comments
 (0)