Commit 9ff986f3 authored by Ben Mullins's avatar Ben Mullins
Browse files

Issue #3314151 by Wim Leers, phenaproxima, smustgrave: Fix cspell use: specify...

Issue #3314151 by Wim Leers, phenaproxima, smustgrave: Fix cspell use: specify globRoot and always pass --root to cspell
parent da3bfc5e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
    "version": "0.1",
    "language": "en-US",
    "allowCompoundWords": false,
    "globRoot": ".",
    "ignorePaths": [
      "**/.*.json",
      ".*ignore",
+2 −2
Original line number Diff line number Diff line
@@ -20,9 +20,9 @@
    "lint:yaml": "node ./node_modules/eslint/bin/eslint.js --ext .yml .",
    "test:nightwatch": "node -r dotenv-safe/config ./node_modules/.bin/nightwatch --config ./tests/Drupal/Nightwatch/nightwatch.conf.js",
    "prettier": "prettier --write \"./**/*.js\"",
    "spellcheck": "cspell",
    "spellcheck": "cspell -c .cspell.json",
    "spellcheck:make-drupal-dict": "rm -f misc/cspell/dictionary.txt && touch misc/cspell/dictionary.txt && yarn -s spellcheck:core --unique --wordsOnly | tr '[:upper:]' '[:lower:]' | tr -d \\\\\\\\ | LC_ALL=C sort -u -o misc/cspell/dictionary.txt",
    "spellcheck:core": "cspell \"**/*\" \".*\" \"../composer/**/*\" \"../composer.json\"",
    "spellcheck:core": "yarn spellcheck --root .. \"core/**/*\" \"composer/**/*\" \"composer.json\"",
    "vendor-update": "node ./scripts/js/vendor-update.js",
    "watch:ckeditor5": "webpack --config ./modules/ckeditor5/webpack.config.js --watch",
    "build:ckeditor5": "webpack --config ./modules/ckeditor5/webpack.config.js",
+1 −1
Original line number Diff line number Diff line
@@ -202,7 +202,7 @@
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