Skip to content

Commit 4b814c8

Browse files
committed
Merge #1678: refactor: extract project dictionary from cSpell.json
48e9606 refactor: extract project dictionary from cSpell.json (Jose Celano) Pull request description: ## Summary Closes #1484 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 (e.g. [torrust-index](https://github.com/torrust/torrust-index/blob/develop/cspell.json) and [torrust-tracker-deployer](https://github.com/torrust/torrust-tracker-deployer/blob/main/cspell.json)). ## Changes - `cSpell.json` — replaced the inline `words` array with a `dictionaryDefinitions` entry pointing to `./project-words.txt`, added `$schema` and `version` fields, and added `ignorePaths` for `target` and `/project-words.txt` - `packages/metrics/cSpell.json` — replaced its own inline `words` array with the same shared dictionary reference (`../../project-words.txt`) - `project-words.txt` (new) — contains all project-specific words previously listed in both config files ## Testing `cspell "**" --no-progress` produces the same set of results as on `develop` (pre-existing warnings in binary/generated files, third-party C code, and SVGs — none introduced by this change). ACKs for top commit: josecelano: ACK 48e9606 Tree-SHA512: 8f0df3e92acc43ba3fb2a3eb408670f16c7ee25b4f3471a755ffd8906a4f571703a86163f3cf2e87e52cb3b05f6b5a0599cf692c277e97a790b9d5710c530af3
2 parents fdea353 + 48e9606 commit 4b814c8

3 files changed

Lines changed: 228 additions & 214 deletions

File tree

cSpell.json

Lines changed: 16 additions & 201 deletions
Original file line numberDiff line numberDiff line change
@@ -1,208 +1,23 @@
11
{
2-
"words": [
3-
"Addrs",
4-
"adduser",
5-
"alekitto",
6-
"appuser",
7-
"Arvid",
8-
"ASMS",
9-
"asyn",
10-
"autoclean",
11-
"AUTOINCREMENT",
12-
"automock",
13-
"Avicora",
14-
"Azureus",
15-
"bdecode",
16-
"bencode",
17-
"bencoded",
18-
"bencoding",
19-
"beps",
20-
"binascii",
21-
"binstall",
22-
"Bitflu",
23-
"bools",
24-
"Bragilevsky",
25-
"bufs",
26-
"buildid",
27-
"Buildx",
28-
"byteorder",
29-
"callgrind",
30-
"camino",
31-
"canonicalize",
32-
"canonicalized",
33-
"certbot",
34-
"chrono",
35-
"Cinstrument",
36-
"ciphertext",
37-
"clippy",
38-
"cloneable",
39-
"codecov",
40-
"codegen",
41-
"completei",
42-
"Condvar",
43-
"connectionless",
44-
"Containerfile",
45-
"conv",
46-
"curr",
47-
"cvar",
48-
"Cyberneering",
49-
"dashmap",
50-
"datagram",
51-
"datetime",
52-
"debuginfo",
53-
"Deque",
54-
"Dijke",
55-
"distroless",
56-
"dockerhub",
57-
"downloadedi",
58-
"dtolnay",
59-
"elif",
60-
"endianness",
61-
"Eray",
62-
"filesd",
63-
"flamegraph",
64-
"formatjson",
65-
"Freebox",
66-
"Frostegård",
67-
"gecos",
68-
"Gibibytes",
69-
"Grcov",
70-
"hasher",
71-
"healthcheck",
72-
"heaptrack",
73-
"hexlify",
74-
"hlocalhost",
75-
"Hydranode",
76-
"hyperthread",
77-
"Icelake",
78-
"iiiiiiiiiiiiiiiiiiiid",
79-
"imdl",
80-
"impls",
81-
"incompletei",
82-
"infohash",
83-
"infohashes",
84-
"infoschema",
85-
"Intermodal",
86-
"intervali",
87-
"Joakim",
88-
"kallsyms",
89-
"Karatay",
90-
"kcachegrind",
91-
"kexec",
92-
"keyout",
93-
"Kibibytes",
94-
"kptr",
95-
"lcov",
96-
"leecher",
97-
"leechers",
98-
"libsqlite",
99-
"libtorrent",
100-
"libz",
101-
"LOGNAME",
102-
"Lphant",
103-
"matchmakes",
104-
"Mebibytes",
105-
"metainfo",
106-
"middlewares",
107-
"misresolved",
108-
"mockall",
109-
"multimap",
110-
"myacicontext",
111-
"ñaca",
112-
"Naim",
113-
"nanos",
114-
"newkey",
115-
"nextest",
116-
"nocapture",
117-
"nologin",
118-
"nonroot",
119-
"Norberg",
120-
"numwant",
121-
"nvCFlJCq7fz7Qx6KoKTDiMZvns8l5Kw7",
122-
"oneshot",
123-
"ostr",
124-
"Pando",
125-
"peekable",
126-
"peerlist",
127-
"programatik",
128-
"proot",
129-
"proto",
130-
"Quickstart",
131-
"Radeon",
132-
"Rakshasa",
133-
"Rasterbar",
134-
"realpath",
135-
"reannounce",
136-
"Registar",
137-
"repr",
138-
"reqs",
139-
"reqwest",
140-
"rerequests",
141-
"ringbuf",
142-
"ringsize",
143-
"rngs",
144-
"rosegment",
145-
"routable",
146-
"rstest",
147-
"rusqlite",
148-
"rustc",
149-
"RUSTDOCFLAGS",
150-
"RUSTFLAGS",
151-
"rustfmt",
152-
"Rustls",
153-
"Ryzen",
154-
"Seedable",
155-
"serde",
156-
"Shareaza",
157-
"sharktorrent",
158-
"SHLVL",
159-
"skiplist",
160-
"slowloris",
161-
"socketaddr",
162-
"sqllite",
163-
"subsec",
164-
"Swatinem",
165-
"Swiftbit",
166-
"taiki",
167-
"tdyne",
168-
"Tebibytes",
169-
"tempfile",
170-
"testcontainers",
171-
"thiserror",
172-
"tlsv",
173-
"Torrentstorm",
174-
"torrust",
175-
"torrustracker",
176-
"trackerid",
177-
"Trackon",
178-
"typenum",
179-
"udpv",
180-
"Unamed",
181-
"underflows",
182-
"Unsendable",
183-
"untuple",
184-
"uroot",
185-
"Vagaa",
186-
"valgrind",
187-
"Vitaly",
188-
"vmlinux",
189-
"Vuze",
190-
"Weidendorfer",
191-
"Werror",
192-
"whitespaces",
193-
"Xacrimon",
194-
"XBTT",
195-
"Xdebug",
196-
"Xeon",
197-
"Xtorrent",
198-
"Xunlei",
199-
"xxxxxxxxxxxxxxxxxxxxd",
200-
"yyyyyyyyyyyyyyyyyyyyd",
201-
"zerocopy"
2+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
3+
"version": "0.2",
4+
"dictionaryDefinitions": [
5+
{
6+
"name": "project-words",
7+
"path": "./project-words.txt",
8+
"addWords": true
9+
}
10+
],
11+
"dictionaries": [
12+
"project-words"
20213
],
20314
"enableFiletypes": [
20415
"dockerfile",
20516
"shellscript",
20617
"toml"
18+
],
19+
"ignorePaths": [
20+
"target",
21+
"/project-words.txt"
20722
]
208-
}
23+
}

packages/metrics/cSpell.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"words": [
3-
"cloneable",
4-
"formatjson",
5-
"Gibibytes",
6-
"Kibibytes",
7-
"Mebibytes",
8-
"ñaca",
9-
"println",
10-
"rstest",
11-
"serde",
12-
"subsec",
13-
"Tebibytes",
14-
"thiserror"
2+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
3+
"version": "0.2",
4+
"dictionaryDefinitions": [
5+
{
6+
"name": "project-words",
7+
"path": "../../project-words.txt",
8+
"addWords": true
9+
}
1510
],
11+
"dictionaries": ["project-words"],
1612
"enableFiletypes": [
1713
"dockerfile",
1814
"shellscript",
1915
"toml"
16+
],
17+
"ignorePaths": [
18+
"target",
19+
"/project-words.txt"
2020
]
2121
}

0 commit comments

Comments
 (0)