about summary refs log tree commit diff
path: root/typos.toml
blob: 317aafc8615655a1adb995202555281cc5d4fe33 (plain)
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
[files]
extend-exclude = [
    # exclude git (sub)modules and generated content
    "compiler/rustc_codegen_gcc",
    "compiler/rustc_codegen_cranelift",
    "compiler/rustc_baked_icu_data",
    "library/compiler-builtins",
    "library/backtrace",
    "library/stdarch",
    # generated lorem ipsum texts
    "library/alloctests/benches/str.rs",
    "library/alloctests/tests/str.rs",
]

[default.extend-words]
# Add exclusions here, lines should be like `x = "x"`, where `x` is excluded word.
#
# Also see docs: https://github.com/crate-ci/typos/blob/v1.28.2/docs/reference.md
rplace = "rplace"
arange = "arange"
unstalled = "unstalled"
taits = "taits"
Datas = "Datas"
splitted = "splitted"
leafs = "leafs"
makro = "makro"
optin = "optin"
unparseable = "unparseable"
smove = "smove"
childs = "childs"
filetimes = "filetimes"
misformed = "misformed"
targetting = "targetting"
publically = "publically"
clonable = "clonable"

# this can be valid word, depends on dictionary edition
#matcheable = "matcheable"

[default.extend-identifiers]
# An entry goes here if the typo is part of some existing ident
# where you want to keep it, but don't want to allow
# such typos everywhere.
#
# I.e. you don't want (or can't) fix some constant name, like
# `DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME` but actually
# want to see `INVAILD` typo fixed in other places.
ERROR_FILENAME_EXCED_RANGE = "ERROR_FILENAME_EXCED_RANGE"
DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME = "DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME"
ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS = "ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS"
ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC = "ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC"
ERROR_MCA_OCCURED = "ERROR_MCA_OCCURED"
ERRNO_ACCES = "ERRNO_ACCES"
tolen = "tolen"

[default]
extend-ignore-words-re = [
    # words with length <= 4 chars is likely noise
    "^[a-zA-Z]{1,4}$",
]

extend-ignore-re = [
    # ignore these intentional typo examples
    "/// 1 \\| #\\[cfg\\(widnows\\)\\]",
    "/// warning: unexpected `cfg` condition name: `widnows`",
    "/// #\\[cfg\\(widnows\\)\\]",
    "\\.arg\\(\"Oh no, a tpyo!\"\\)",
    # string used in benches
    "\"core::iter::adapters::Copie\"",
    "-Ccontrol-flow-guard",
    "concat!\\(\"CURRENT_RUSTC_VERSIO\", \"N\"\\)",
    "\\*\\*v\\*\\*ariable"
]