cspell does not flag "ist" as a typo

Created on 20 April 2023, over 1 year ago
Updated 1 August 2023, over 1 year ago

Problem/Motivation

📌 Add the session to the request in KernelTestBase, BrowserTestBase, and drush Fixed was RTBC for a little while with a deprecation message that said:

Pushing requests without a session onto the request_stack ist deprecated in drupal 10.1.0 and an error will be thrown from drupal 11.0.0. See https://www.drupal.org/node/3337193 .

The test bot and core/scripts/dev/commit-code-check.sh were both happy with this, but "ist" isn't a word. I had to be paying close attention and flagged it manually.

ist is not listed anywhere in core/misc/cspell/dictionary.txt. Really not sure how this is passing.

My only theory is that cspell is doing some stemming and thinks that since "ist" is a valid suffix to add on other words (e.g. "social" vs. "socialist"), if it sees the suffix on its own, everything is okay? Or something?

Steps to reproduce

  1. Checkout 10.1.x core
  2. Put 'ist' anywhere in a string literal or comment in a file.
  3. git add the file.
  4. Run core/scripts/dev/commit-code-check.sh --cached
  5. Be amazed to find: "CSpell: passed"

Proposed resolution

Probably we should add 'ist' to the flagWords section of core/.cspell.json.

Maybe we should try to fix this upstream in cspell itself?

Remaining tasks

  1. Figure out why this is happening (if possible).
  2. Decide if we should use flagWords to solve this, or try to fix cspell itself upstream or something.
  3. Documentation updates

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Base 

Last updated 21 minutes ago

Created by

🇺🇸United States dww

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024