-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypos.toml
24 lines (22 loc) · 1.09 KB
/
typos.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Typos CLI configuration file
# ============================
# ## Running `typos-cli`.
# Execute `cargo xtask check typos` to run `typos-cli` with the same configuration as on CI.
#
# ## Updating `typos-cli`.
# Please regularly update `typos-cli` to the latest version. If a new version is available, please
# update the version string in `xtask\src\bin_version.rs`.
#
# ## How to properly fix `typos-cli` errors:
# 1. If a typo is obvious: just fix it.
# 2. False-positive in the binary/test asset/generated file: add it to `extend-exclude` glob list.
# 3. False-positive in the source code: (in order of preference)
# 3.1. Place correction in `extend-identifiers` if a false-positive is in the identifier name.
# 3.2. Place correction in `extend-words` if a false-positive is in the arbitrary word (docs,
# comments, etc.) or text was not recognized as an identifier.
# 3.3. Place regex in `extend-ignore-re` if the correction cannot be expressed as a single word.
# 3.4. Last resort: add file ignore to `extend-exclude` list.
[files]
extend-exclude = []
[default]
extend-ignore-re = []