-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.cspell.json
289 lines (289 loc) · 8.4 KB
/
.cspell.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
// cSpell is our spell checker
// See: https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell
{
// Version of the setting file. Always 0.1
"version": "0.1",
// language - current active spelling language
"language": "en",
// dictionaries - list of the names of the dictionaries to use
"dictionaries": [
"en_US",
"softwareTerms",
"cpp",
"python",
"python-custom"
],
// dictionaryDefinitions - this list defines any custom dictionaries to use
"dictionaryDefinitions": [
{
"name": "python-custom",
"path": "./.cspell_python.txt"
}
],
"ignorePaths": [
"**/*.stencil", // Sourcery templates
"**/__pycache__/**",
"**/node_modules/**", // Yep, we got some of dem JavaScript! (To generate BigInt tests)
"./PyTests/RustPython/**", // They know what they are doing
"./Scripts/**/*.out", // Compiled files
"./Scripts/unicode/*.txt", // Unicode database
"./Scripts/unicode/*.zip", // Some more Unicode
"./Tests/UnicodeDataTests/Generated/*.swift", // Even more Unicode (this is tle last one, I promise!)
"./Scripts/module_generate_empty_definition/*.html", // .html file that we will use to generate module scaffolding (with docs)
"./Sources/Objects/Generated/Sourcery/dump.txt", // File generated by 'Sourcery'
"./Scripts/ariel_output/*"
],
// words - list of words to be always considered correct
"words": [
// Swift
"struct",
"structs",
"typealias",
"associatedtype",
"fileprivate",
"inout",
"nonmutating",
"discardable", // @discardableResult
"deinit",
"Hashable",
"Hasher",
"Strideable",
"Reflectable", // CustomReflectable
"lowercased",
"uppercased",
"uniquing", // https://developer.apple.com/documentation/swift/dictionary/3127161-init
"pointee", // https://developer.apple.com/documentation/swift/unsafepointer/1640970-pointee
"significand", // https://developer.apple.com/documentation/swift/binaryfloatingpoint
"whitespaces", // https://developer.apple.com/documentation/foundation/nscharacterset/1413732-whitespacesandnewlines
"titlecase", // Unicode prop
"swiftlint",
"swiftformat",
"sourcery",
"corelibs", // swift-corelibs-foundation
// Python
"cpython",
"Bdfl", // Benevolent dictator for life
"BDEVIL", // Benevolent Dictator Emeritus Vacationing Indefinitely from the Language (PEP-401)
"FLUFL", // Friendly Language Uncle For Life (PEP-401)
"kwarg",
"kwargs",
"vararg",
"varargs",
"metaclass", // Cthulhu
"metaclasses", // Cthulhu (plural)
"metatype", // Cthulhu (different name)
"fstring", // Formatted string
"fstrings",
"docstring",
"docstrings",
"fileencoding",
"linearization", // Python uses C3 linearization: https://www.python.org/download/releases/2.3/mro/
"linearize",
"keyworded", // Adjective of 'keyword', as in 'keyworded argument'
"PYTHONDEBUG",
"PYTHONINSPECT",
"PYTHONPATH",
"PYTHONHOME",
"PYTHONPATH",
"PYTHONVERBOSE",
"PYTHONOPTIMIZE",
"PYTHONWARNINGS",
"VIOLETPATH",
"VIOLETHOME",
"Wdefault",
"Werror",
"Walways",
"Wmodule",
"Wonce",
"Wignore",
// Violet
"Evergarden", // “Violet Evergarden” is the full character name
"pytype",
"pybase",
"pyerrortype",
"pymethod",
"pytypedoc",
"pystaticmethod",
"pyclassmethod",
"pyproperty",
"pymain",
"pystring",
"zelf", // This is how we call 'self' parameter in static methods
"pytest",
"pytests",
"Smi", // Part of our BigInt representation: small 32 bit integer
"Smis",
"letitgo", // File extension of our 'Elsa' tool
// Disnep
"Disnep", // Correct form of spelling “Disney” (look at the logo!)
"Gaston", // Best waifu
"Waifu", // Gaston
"Arendelle", // Elsa homeland from “Frozen”
"Kristoff", // Anna boyfriend from “Frozen”
"snowgies", // Official (!) name of the small creatures that Elsa created
"Frollo", // Antagonist from “The Hunchback of Notre Dame”
"Jafar", // Antagonist from “Aladdin”
"Agrabah", // City from “Aladdin”
"Tigger", // Character from “Winnie the Pooh”, correct form of spelling “tiger”
"Howse", // Rabbits Howse from “Winnie the Pooh”
"Mulan", // You know who she is…
"Maximus", // Horse from “Tangled”
"Nani", // Sister from “Lilo & Stitch”
"Cogsworth", // Character from “Beauty and the Beast”
// Other
"Galavant", // https://www.youtube.com/watch?v=QWnDwM0RSX4
"Pikachu", // Mostly used inside “<surprised Pikachu face>”
"bestdressed", // AKA. Ashley: https://www.youtube.com/channel/UCnQhwPVwcP-DnbUZtIMrupw
// Cute
"thingie", // Very important word, use often
"smol", // 'small' but more cute
"teknikly", // Other way of spelling 'technically', always surrounded by '*'
"nuff", // 'nuff said
"c'mon",
"YOLO",
// Algorithms
"Wadler", // Philip Wadler (creator of our pretty printing algorithm)
"Siphash", // Hashing algorithm
"Aumasson", // Jean-Philippe Aumasson (creator of siphash)
"Karatsuba", // BigInt multiplication algorithm
// Function arity
"nullary",
"quartary",
"quintary",
// Events/websites
"WWDC",
"cppreference",
"greentreesnakes", // https://greentreesnakes.readthedocs.io/en/latest/nodes.html
// Other
"Bytecode",
"richcompare",
"klass",
"onespace",
"unwinded",
"subiterator", // Used inside instruction description
"unicodectype", // Generating Unicode database
"makeunicodedata",
"unhashable",
"subclassing",
"typealiases",
"choseong", // HANGUL CHOSEONG THIEUTH
"thieuth"
],
// flagWords - list of words to be always considered incorrect
"flagWords": [
"hte",
"Disney" // Incorrect spelling of “Disnep”
],
// TODO: Simplify?
"ignoreRegExpList": [
"[Ss](o)+[… ]", // Sooooo…
"[Oo]+ps…", // Ooooops… - means that something went bad
"[Ww](a)+y " // Waaaay too much
],
// languageSettings - allow for per programming language configuration settings.
"languageSettings": [
{
"languageId": "swift",
"locale": "en",
"words": [
// Token related
"amper", // &
"vbar", // |
"paren", // ()
"parens",
"dedent",
"dedents",
// AST related (mostly CPython grammar rule names)
"asdl", // Root of CPython AST
"tfpdef",
"vfpdef",
"funcdef",
"classdef",
"lambdef",
"exprlist",
"testlist",
"arglist",
"varargslist",
"subscriptlist",
"typedargslist",
"augassign",
"annassign",
"sliceop",
"parsestrplus",
"dictorsetmaker",
"nocond",
"stmt",
"stmts",
"ENDMARKER",
// Bytecode related
"genexpr", // Code object names
"listcomp",
"setcomp",
"dictcomp",
"lnotab", // Code object properties
"consts",
"varnames",
"freevars",
"cellvars",
"argcount",
"kwonlyargcount",
// Compiler related
"symtable",
"classcell",
"qualname",
"subscope",
"subscopes",
// Other
"cyclomatic",
"multiline",
"TLDR",
"prepend", // https://dictionary.cambridge.org/dictionary/english/prepend
"subword",
"Conformances",
"bitshift",
"deinitializing",
"reimplement",
"reimplemented",
"concat", // concatenation
"mkdirp"
]
},
{
"languageId": "python",
"locale": "en"
},
{
"languageId": "markdown",
"locale": "en",
"words": [
"pyhash",
"uhash",
"hashreal",
"hashimag",
"complexobject",
"tupleobject",
"tuplesubscript",
"tupleitem",
"listobject",
"typeobject",
"typeobj",
"objimpl",
"longobject",
"longintrepr",
"vectord",
"pymethods",
"gcmodule",
"basicsize",
"itemsize",
"SSTATE",
"malloc'ed",
"DECREF",
"arities", // Plural of 'arity': https://en.wiktionary.org/wiki/arity
"Gameboy", // We sometimes compare our bytecode to Gameboy instructions
"memberwise",
"COVID",
"lockdown"
]
}
]
}