Repository navigation
Expand file tree
/
Copy path_typos.toml
More file actions
65 lines (62 loc) · 2.55 KB
/
Copy path_typos.toml
File metadata and controls
65 lines (62 loc) · 2.55 KB
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
[files]
# https://github.com/crate-ci/typos/issues/868
extend-exclude = [
"crates/ty_vendored/vendor/**/*",
"crates/ruff_unicode_names2/data/NameAliases.txt",
"crates/ruff_unicode_names2/data/UnicodeData.txt",
"**/resources/**/*",
"**/snapshots/**/*",
"crates/ruff_linter/src/rules/flake8_implicit_str_concat/rules/collection_literal.rs",
# Completion tests tend to have a lot of incomplete
# words naturally. It's annoying to have to make all
# of them actually words. So just ignore typos here.
"crates/ty_ide/src/completion.rs",
# Same for "Did you mean...?" levenshtein tests.
"crates/ty_python_semantic/src/diagnostic/levenshtein.rs",
# Generated harvest evidence: hashes, addresses and opcode tags, not prose.
# The hook read the hex `a8ad31e12dbe9f80` as a misspelling and dropped a
# digit, breaking the shape_id join between two sections of the ledger.
".claude/harvest/**/*",
]
[default.extend-words]
nd = "nd"
"arange" = "arange" # e.g. `numpy.arange`
hel = "hel"
whos = "whos"
spawnve = "spawnve"
ned = "ned"
pn = "pn" # `import panel as pn` is a thing
poit = "poit"
BA = "BA" # acronym for "Bad Allowed", used in testing.
jod = "jod" # e.g., `jod-thread`
CPY = "CPY" # it's a Ruff rule category
# P-code / R2IL opcode names, not prose. INT_SCARRY is signed-carry; the
# hook's "scary" correction silently corrupts an emitted wire tag.
scarry = "scarry"
# `anc` is an intentional MeTTa predicate for ancestor in a recursive
# Datalog-style test. Replacing it with `and` changes the program's meaning.
anc = "anc"
# Tesseract really does ship `src/ccstruct/statistc.h` under that spelling.
# "Correcting" it points the harvest docs at a file that does not exist.
statistc = "statistc"
# `oce` is the C# harvester's local for an ObjectCreationExpressionSyntax
# pattern binding; `tage` is a legacy column name carried by a codegen fixture.
# Both are identifiers under test — renaming them changes what is exercised.
oce = "oce"
tage = "tage"
[default]
extend-ignore-re = [
# Line ignore with trailing "spellchecker:disable-line"
"(?Rm)^.*#\\s*spellchecker:disable-line$",
"LICENSEs",
# Various third party dependencies uses `typ` as struct field names (e.g., lsp_types::LogMessageParams)
"typ",
# TODO: Remove this once the `TYP` redirects are removed from `rule_redirects.rs`
"TYP",
"ntBre"
]
[default.extend-identifiers]
"FrIeNdLy" = "FrIeNdLy"
# libclang's own cursor-kind spelling, surfaced by the `clang` crate as
# `EntityKind::ParmDecl`. Renaming it does not compile.
"ParmDecl" = "ParmDecl"