- Issue created by @jonathan1055
- 🇬🇧United Kingdom jonathan1055
Whilst making these changes to cspell, we can also use this issue to fix the error that when verbose
-v
is added in$_CSPELL_EXTRA
this is also used in the second cspell command when we create the words file. So we get the verbose text saved to the$WORDS_FILE
artifact which is unhelpful, and also gives the wrong count for number of words mis-spelled. The verbose output is not needed twice, so it should be easy to remove '-v' from$_CSPELL_EXTRA
before calling the command for the second time. - 🇬🇧United Kingdom jonathan1055
Also I note that
build.env
is being checked. This is not a file that is under the control of the project, so we should always skip this.The empty artifact file
_cspell_updated_project_words.txt
is being checked on the second run, and there is no need to include this either, as it is just confusing in the log. - 🇬🇧United Kingdom jonathan1055
Another thing to check is whether all folders are being checked. I am sure this used to be the case, but this recent cspell job only checked 7 files at the top level. It has
CSPELL_SEARCH=$([[ $_CSPELL_EXTRA =~ "--dot" ]] && echo "{**,.**}" || echo "**")
and the result is**
as expected. Thesrc
andtests
folders are shown in the potential list of files but no files in them are checked.https://git.drupalcode.org/issue/scheduler_content_moderation_integratio...