refactor: extract project dictionary from cSpell.json#1678
Merged
josecelano merged 1 commit intotorrust:developfrom Apr 8, 2026
Merged
Conversation
Move the project-specific word list from the inline 'words' array in cSpell.json into a dedicated project-words.txt dictionary file, following the same pattern used in other Torrust organisation repositories. Update packages/metrics/cSpell.json to reference the shared dictionary instead of maintaining its own inline word list. Closes torrust#1484
Member
Author
|
ACK 48e9606 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1678 +/- ##
========================================
Coverage 86.44% 86.44%
========================================
Files 288 288
Lines 22672 22672
Branches 22672 22672
========================================
Hits 19598 19598
Misses 2840 2840
Partials 234 234 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
|
ACK 48e9606 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1484
Move the project-specific word list from the inline
wordsarray incSpell.jsoninto a dedicatedproject-words.txtdictionary file, following the same pattern used in other Torrust organisation repositories (e.g. torrust-index and torrust-tracker-deployer).Changes
cSpell.json— replaced the inlinewordsarray with adictionaryDefinitionsentry pointing to./project-words.txt, added$schemaandversionfields, and addedignorePathsfortargetand/project-words.txtpackages/metrics/cSpell.json— replaced its own inlinewordsarray with the same shared dictionary reference (../../project-words.txt)project-words.txt(new) — contains all project-specific words previously listed in both config filesTesting
cspell "**" --no-progressproduces the same set of results as ondevelop(pre-existing warnings in binary/generated files, third-party C code, and SVGs — none introduced by this change).