Skip to content

Commit

Permalink
Use remote cspell dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Dec 24, 2023
1 parent 2b2d802 commit c9bdd59
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 187 deletions.
2 changes: 1 addition & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dictionaryDefinitions": [
{
"name": "organization-dictionary",
"path": "./.github/.cspell/organization-dictionary.txt",
"path": "https://raw.githubusercontent.com/taiki-e/github-actions/HEAD/.github/.cspell/organization-dictionary.txt",
"addWords": true
},
{
Expand Down
185 changes: 0 additions & 185 deletions .github/.cspell/organization-dictionary.txt

This file was deleted.

2 changes: 1 addition & 1 deletion tools/tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ if [[ -f .cspell.json ]]; then
dependencies=$(sed <<<"${dependencies}" 's/[0-9_-]/\n/g' | LC_ALL=C sort -f -u)
fi
config_old=$(<.cspell.json)
config_new=$(grep <<<"${config_old}" -v ' *//' | jq 'del(.dictionaries[] | select(index("organization-dictionary") | not))' | jq 'del(.dictionaryDefinitions[] | select(.name == "organization-dictionary" | not))')
config_new=$(grep <<<"${config_old}" -v '^ *//' | jq 'del(.dictionaries[] | select(index("organization-dictionary") | not))' | jq 'del(.dictionaryDefinitions[] | select(.name == "organization-dictionary" | not))')
trap -- 'echo "${config_old}" >.cspell.json; echo >&2 "$0: trapped SIGINT"; exit 1' SIGINT
echo "${config_new}" >.cspell.json
if [[ -n "${has_rust}" ]]; then
Expand Down

0 comments on commit c9bdd59

Please sign in to comment.