Closed (fixed)
Project:
Drupal core
Version:
9.5.x-dev
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2023 at 08:15 UTC
Updated:
15 Feb 2023 at 09:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
spokjeComment #3
spokjeComment #4
spokjeComment #5
spokjeComment #6
smustgrave commentedChange looks good.
Comment #7
jungleIt took about 90s to run the command on my local `yarn spellcheck:make-drupal-dict`. So, is it necessary/worth writing a test to avoid regression?
Comment #8
spokjeAgreed, but over in #336828: Timezone settings via Install profile? and #336828: Timezone settings via Install profile? it looks like it was decided it's taking too long. #3336828: File dictionary.txt is not sorted
Comment #9
longwaveIn the 10.x patches:
Where is this coming from, and why isn't it currently picked up as an error?
Comment #10
spokjeGood questions @longwave (rather unsurprising, since that's usually the case).
This seems to be coming from here: https://git.drupalcode.org/project/drupal/-/blob/10.1.x/core/tests/Drupa...
Since it's been there since 14/11/2012, I can only imagine we upped our CSpell version (on 10.x) at some point in time and did _not_ ran a
yarn spellcheck:make-drupal-dictafterwards.In that new version, somehow somewhere, derp got deleted from a dictionary within CSpell.
Afterwards the file never changed, so was never checked by CSpell and was never flagged for the, now unknown, word "derp".
I think if we can make
core/scripts/dev/commit-code-check.shdo ayarn spellcheck:make-drupal-dictwhenever the version of CSpell is bumped, we'll never have this problem again.Since we basically only bump (nodeJS)-dependencies just before a new release, it's a rather rarely occurring event, so that might weigh up against the time we would need to spend to do a
yarn spellcheck:make-drupal-dict?Comment #11
quietone commentedWe also need to rebuild the dictionary when cspell.json changes, #3308419-22: Use all the included dictionaries with cspell
Tagging for a followup to make sure the dictionary is rebuilt when needed.
Comment #12
spokjeThanks @quietone, makes perfect sense.
I've opened #3338155: Run CSpell on all files when CSpell-related files change for that, removing
Needs followuptag.Comment #15
catchFollow-up is a good idea.
Committed/pushed the respective three patches to the respective three branches, thanks!