Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal Development Environment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Composer
plugin
Drupal Development Environment
Merge requests
!19
Merging develop into main
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Merging develop into main
develop
into
main
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
GitLab CI
requested to merge
develop
into
main
10 months ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
Add project word list for cspell
#19 (closed)
Add support for local cspell tests
0
0
Merge request reports
Viewing commit
1f2f840e
Prev
Next
Show latest version
1 file
+
23
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
1f2f840e
#19
Add support for local cspell tests
· 1f2f840e
jurgenhaas
authored
10 months ago
ahoy.test.yml
+
23
−
0
Options
@@ -105,3 +105,26 @@ commands:
echo "Testing for outdated minor versions ..."
composer outdated --minor-only --strict --no-interaction
usage
:
Verifies that a dependencies are using the latest minor and patch versions
cspellmodule
:
cmd
:
|
export CI_PROJECT_NAME=$1
shift
while read assign; do
export "$assign";
done < <(sed -nr '/variables:/,$ s/ ([A-Z_]+): (.*)/\1=\2/ p' /drupal/web/modules/contrib/$CI_PROJECT_NAME/.gitlab-ci.yml)
export _WEB_ROOT=/drupal/web
export _CURL_TEMPLATES_REPO=project/gitlab_templates
export _CURL_TEMPLATES_REF=default-ref
cd /drupal/web/modules/contrib/$CI_PROJECT_NAME
curl -sOL https://git.drupalcode.org/$_CURL_TEMPLATES_REPO/-/raw/$_CURL_TEMPLATES_REF/scripts/prepare-cspell.php
if [ ! -f .cspell.json ]; then
curl -sOL https://git.drupalcode.org/$_CURL_TEMPLATES_REPO/-/raw/$_CURL_TEMPLATES_REF/assets/.cspell.json
fi
php prepare-cspell.php
rm prepare-cspell.php
touch .cspell-project-words.txt
/drupal/web/core/node_modules/.bin/cspell -c .cspell.json --show-suggestions --show-context --no-progress $_CSPELL_EXTRA ** || EXIT_CODE=$?
if [ "$EXIT_CODE" != "" ]; then
/drupal/web/core/node_modules/.bin/cspell -c .cspell.json --words-only --unique --no-progress $_CSPELL_EXTRA ** | sort -f
fi
rm .cspell.json
Loading