From 905966164beb3c2f2eb4aa09c7e279d0fc16f1d1 Mon Sep 17 00:00:00 2001 From: bnjmnm Date: Wed, 8 Mar 2023 15:26:43 -0500 Subject: Issue #3314151 by Wim Leers, phenaproxima, smustgrave: Fix cspell use: specify globRoot and always pass --root to cspell --- core/scripts/dev/commit-code-check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/scripts/dev/commit-code-check.sh') diff --git a/core/scripts/dev/commit-code-check.sh b/core/scripts/dev/commit-code-check.sh index 8b72409bd156..6959f859746b 100755 --- a/core/scripts/dev/commit-code-check.sh +++ b/core/scripts/dev/commit-code-check.sh @@ -202,7 +202,7 @@ if [ $DEPENDENCIES_NEED_INSTALLING -ne 0 ]; then fi # Check all files for spelling in one go for better performance. -yarn run -s spellcheck --no-must-find-files -c $TOP_LEVEL/core/.cspell.json $ABS_FILES +yarn run -s spellcheck --no-must-find-files --root $TOP_LEVEL $ABS_FILES if [ "$?" -ne "0" ]; then # If there are failures set the status to a number other than 0. FINAL_STATUS=1 -- cgit v1.2.3