1+ # Config for the `typos` crate, used by `./x test tidy --extra-checks=spellcheck`.
2+ # See also: https://github.com/crate-ci/typos/blob/v1.28.2/docs/reference.md
3+
14[files ]
25extend-exclude = [
36 # exclude git (sub)modules and generated content
@@ -13,57 +16,65 @@ extend-exclude = [
1316]
1417
1518[default .extend-words ]
16- # Add exclusions here, lines should be like `x = "x"`, where `x` is excluded word.
19+ # Allowlist for words that look like typos but are not, or aren't worth fixing
20+ # right now. Entries should look like `mipsel = "mipsel"`.
1721#
18- # Also see docs: https://github.com/crate-ci/typos/blob/v1.28.2/docs/reference.md
19- arange = " arange"
22+ # tidy-alphabetical-start
23+ arange = " arange" # short for A-range
2024childs = " childs"
2125clonable = " clonable"
22- Datas = " Datas"
23- filetimes = " filetimes"
26+ filetimes = " filetimes" # short for "file times", not a typo for "lifetimes"
2427leafs = " leafs"
25- makro = " makro"
28+ makro = " makro" # deliberate misspelling to avoid `macro` keyword
2629misformed = " misformed"
2730moreso = " moreso"
28- optin = " optin"
31+ numer = " numer" # short for numerator, not a typo for "number"
32+ optin = " optin" # short for opt-in
2933publically = " publically"
30- rplace = " rplace"
31- smove = " smove"
34+ rplace = " rplace" # short for R-place
3235splitted = " splitted"
33- taits = " taits"
36+ taits = " taits" # lowercase for TAITs (type alias impl trait)
3437targetting = " targetting"
3538unparseable = " unparseable"
3639unstability = " unstability"
37- unstalled = " unstalled"
38- numer = " numer "
40+ unstalled = " unstalled" # short for un-stalled
41+ # tidy-alphabetical-end
3942
40- # this can be valid word, depends on dictionary edition
41- # matcheable = "matcheable"
43+ # Denylist to forbid misspelled words that aren't detected by the built-in
44+ # dictionary. Entries should look like `mipsel = ""` or `mipsel = "misspell"`;
45+ # the non-empty form can be automatically fixed by `--bless`.
46+ #
47+ # tidy-alphabetical-start
48+ definitinon = " definition"
49+ # tidy-alphabetical-end
4250
4351[default .extend-identifiers ]
44- # An entry goes here if the typo is part of some existing ident
45- # where you want to keep it, but don't want to allow
46- # such typos everywhere.
52+ # Allowlist for specific identifiers that should be permitted even though they
53+ # appear to contain typos that would be forbidden in other identifiers.
54+ #
55+ # For example, you might want to allow a specific constant like
56+ # `DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME`, but still want to forbid
57+ # the typo `INVAILD` in other places.
4758#
48- # I.e. you don't want (or can't) fix some constant name, like
49- # `DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME` but actually
50- # want to see `INVAILD` typo fixed in other places.
51- debug_aranges = " debug_aranges"
59+ # tidy-alphabetical-start
5260DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME = " DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME"
53- EnzymeTypeTreeShiftIndiciesEq = " EnzymeTypeTreeShiftIndiciesEq"
54- EnzymeTypeTreeShiftIndiciesEqFn = " EnzymeTypeTreeShiftIndiciesEqFn"
55- shift_indicies_eq = " shift_indicies_eq"
5661ERRNO_ACCES = " ERRNO_ACCES"
5762ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS = " ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS"
5863ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC = " ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC"
5964ERROR_FILENAME_EXCED_RANGE = " ERROR_FILENAME_EXCED_RANGE"
6065ERROR_MCA_OCCURED = " ERROR_MCA_OCCURED"
6166ERROR_REQ_NOT_ACCEP = " ERROR_REQ_NOT_ACCEP"
62- Oppen = " Oppen"
67+ EnzymeTypeTreeShiftIndiciesEq = " EnzymeTypeTreeShiftIndiciesEq"
68+ EnzymeTypeTreeShiftIndiciesEqFn = " EnzymeTypeTreeShiftIndiciesEqFn"
69+ Oppen = " Oppen" # Derek C. Oppen, author of "Pretty Printing" (1979)
6370# typos treats this as two different camelcase words (`SETTIN` and `Gs`)
6471# Tracked in: https://github.com/crate-ci/typos/issues/745
6572SETTINGs = " SETTINGs"
66- tolen = " tolen"
73+ debug_aranges = " debug_aranges" # debug A-ranges
74+ key_smove = " key_smove" # shifted move key, used by terminfo
75+ shift_indicies_eq = " shift_indicies_eq"
76+ tolen = " tolen" # length of "to" buffer, used by `sendto` in Windows sockets
77+ # tidy-alphabetical-end
6778
6879[default ]
6980extend-ignore-words-re = [
0 commit comments