diff options
author | Dave Long <dave@longwaveconsulting.com> | 2025-01-27 23:12:19 +0000 |
---|---|---|
committer | Dave Long <dave@longwaveconsulting.com> | 2025-01-27 23:12:19 +0000 |
commit | 2264713d19967b431134fc776c692eaf9f068333 (patch) | |
tree | f550dc7af95b7e6060bfb00341801a5a8be84e05 | |
parent | 431d46a460e430c9c92db1454c24eb77e5281443 (diff) | |
download | drupal-2264713d19967b431134fc776c692eaf9f068333.tar.gz drupal-2264713d19967b431134fc776c692eaf9f068333.zip |
Issue #3338155 by jonathan1055, spokje, quietone: Run CSpell on all files when CSpell-related files change
-rwxr-xr-x | core/scripts/dev/commit-code-check.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/scripts/dev/commit-code-check.sh b/core/scripts/dev/commit-code-check.sh index 5d7f4907a9e..54169223626 100755 --- a/core/scripts/dev/commit-code-check.sh +++ b/core/scripts/dev/commit-code-check.sh @@ -139,7 +139,8 @@ JAVASCRIPT_PACKAGES_CHANGED=0 # it is used to make sure the compiled JS is valid. CKEDITOR5_PLUGINS_CHANGED=0 -# This variable will be set to when the dictionary has changed. +# This variable will be set to one when either of the core dictionaries or the +# .cspell.json config has changed. CSPELL_DICTIONARY_FILE_CHANGED=0 # Build up a list of absolute file names. @@ -176,7 +177,7 @@ for FILE in $FILES; do CKEDITOR5_PLUGINS_CHANGED=1; fi; - if [[ $FILE == "core/misc/cspell/dictionary.txt" || $FILE == "core/misc/cspell/drupal-dictionary.txt" ]]; then + if [[ $FILE == "core/misc/cspell/dictionary.txt" || $FILE == "core/misc/cspell/drupal-dictionary.txt" || $FILE == "core/.cspell.json" ]]; then CSPELL_DICTIONARY_FILE_CHANGED=1; fi done |