Miscellaneous CSPELL fixes
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3505522. --> Reported by: [jonathan1055](https://www.drupal.org/user/92645) Related to !434 !416 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The CSPELL job currently runs in the top-level $CI_PROJECT_DIR directory, and we have to exclude 'web', 'vendor' and other directories as part of the prepare-cspell script. But now there is a new directory 'recipes' which by default is getting checked in the contrib cspell job. See <a href="https://git.drupalcode.org/issue/gitlab_templates_downstream-3503851/-/jobs/4303462#L89">this verbose output</a></p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>The original problem was solved in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/gitlab_templates/-/issues/3529479" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/gitlab_templates/-/issues/3529479</a></span> - see comment #5. This issue will now address the other points:</p> <ol> <li>Using verbose <code> -v</code> should not write the verbose text to the $WORDS_FILE artifact</li> <li>The <code>build.env</code> file should not be checked for spelling. Already <a href="https://git.drupalcode.org/project/gitlab_templates/-/commit/555b9ac91ce9306624201e76c132aff45325b2fa#999cbf9bf1d5330b21e7a6ba1267d2bc2a501ce0">fixed here</a></li> <li>The file<code> _cspell_updated_project_words.txt</code> is checked on the second run. It should be excluded. Already <a href="https://git.drupalcode.org/project/gitlab_templates/-/commit/778b0f6b720d1473a3a26602b56bfdd354af8cd6#999cbf9bf1d5330b21e7a6ba1267d2bc2a501ce0">fixed here</a></li> <li>CSpell job ends green when invalid options are specified, see <a href="https://git.drupalcode.org/project/scheduler/-/jobs/7002089#L52">this example</a></li> <li>Fix regression: Files in sub-folders are no longer being checked</li> </ol>
issue